Ignore:
Timestamp:
Apr 14, 2017, 9:41:36 PM (11 days ago)
Author:
brainslayer
Message:

kernel update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.9/drivers/clocksource/arm_arch_timer.c

    r31574 r31859  
    8282static bool arch_timer_c3stop;
    8383static bool arch_timer_mem_use_virtual;
     84static bool arch_counter_suspend_stop;
    8485
    8586static bool evtstrm_enable = IS_ENABLED(CONFIG_ARM_ARCH_TIMER_EVTSTREAM);
     
    577578        .read   = arch_counter_read,
    578579        .mask   = CLOCKSOURCE_MASK(56),
    579         .flags  = CLOCK_SOURCE_IS_CONTINUOUS | CLOCK_SOURCE_SUSPEND_NONSTOP,
     580        .flags  = CLOCK_SOURCE_IS_CONTINUOUS,
    580581};
    581582
     
    617618        }
    618619
     620        if (!arch_counter_suspend_stop)
     621                clocksource_counter.flags |= CLOCK_SOURCE_SUSPEND_NONSTOP;
    619622        start_count = arch_timer_read_counter();
    620623        clocksource_register_hz(&clocksource_counter, arch_timer_rate);
     
    908911                arch_timer_uses_ppi = PHYS_SECURE_PPI;
    909912
     913        /* On some systems, the counter stops ticking when in suspend. */
     914        arch_counter_suspend_stop = of_property_read_bool(np,
     915                                                         "arm,no-tick-in-suspend");
     916
    910917        return arch_timer_init();
    911918}
Note: See TracChangeset for help on using the changeset viewer.