From 01c4ad06a82240ee4b9044addadc05cd281dd2e5 Mon Sep 17 00:00:00 2001 From: "Se Wang (Patrick) Oh" Date: Thu, 11 Jun 2015 18:10:07 -0700 Subject: 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 Signed-off-by: Prasad Sodagudi --- drivers/clocksource/arm_arch_timer.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/clocksource') 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) -- cgit v1.2.3