diff options
author | Se Wang (Patrick) Oh <sewango@codeaurora.org> | 2015-06-11 18:10:07 -0700 |
---|---|---|
committer | Prasad Sodagudi <psodagud@codeaurora.org> | 2017-03-06 09:17:36 -0800 |
commit | 01c4ad06a82240ee4b9044addadc05cd281dd2e5 (patch) | |
tree | aab15c6611c8c380d6e0f8eeec310762bbbcf73b /drivers/clocksource | |
parent | 54547c9f7577d6503938b32ea796ef8abba102fc (diff) |
ARM: arch_timer: force re-selection of the best clocksource
As the best clocksource is not selected till core boot completion,
only periodic tick timer works and it increases jiffies by one at
every tick updates. If interrupt is disabled more than one tick(10ms),
timer interrupts are missed and jiffies can't be updated at every
10ms and it can be behind the real time. So make it possible to select
the best clocksource right after arm arch timer initialization, so that
jiffies can be increased by multiple counts since then.
Change-Id: Id8c4e3ce9b9e44061fef7ad7e678ca1c27d84bb1
Signed-off-by: Se Wang (Patrick) Oh <sewango@codeaurora.org>
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r-- | drivers/clocksource/arm_arch_timer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index 900d37ca0d7c..5dc26d29e4a4 100644 --- a/drivers/clocksource/arm_arch_timer.c +++ b/drivers/clocksource/arm_arch_timer.c @@ -687,6 +687,7 @@ static void __init arch_timer_common_init(void) arch_timer_banner(arch_timers_present); arch_counter_register(arch_timers_present); arch_timer_arch_init(); + clocksource_select_force(); } static void __init arch_timer_init(void) |