From: Colin Cross Date: Wed, 30 Nov 2011 00:37:07 +0000 (-0800) Subject: ARM: idle: call idle notifiers before stopping nohz tick X-Git-Tag: firefly_0821_release~7613^2~215 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b86fd0b62252fbba6a5d6acda09fd325fb8e201b;p=firefly-linux-kernel-4.4.55.git ARM: idle: call idle notifiers before stopping nohz tick If an idle notifier modifies a timer, calling the notifier after the sched tick has been stopped may leave the sched tick set too early. Move teh idle notifier call before the call to tick_nohz_stop_sched_tick. Change-Id: I0db3284bec6d0193bc5e2a57650ab06bd8342319 Signed-off-by: Colin Cross --- diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index 54c97eee6173..7d66a6e66cb6 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c @@ -223,8 +223,8 @@ void cpu_idle(void) /* endless idle loop with no priority at all */ while (1) { - tick_nohz_stop_sched_tick(1); idle_notifier_call_chain(IDLE_START); + tick_nohz_stop_sched_tick(1); while (!need_resched()) { #ifdef CONFIG_HOTPLUG_CPU if (cpu_is_offline(smp_processor_id()))