From: Hiroshi Shimamoto Date: Wed, 30 Jan 2008 12:33:00 +0000 (+0100) Subject: x86: move out tick_nohz_stop_sched_tick() call from the loop X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3d97775a80a03013abe1fd681620925f884ad18a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git x86: move out tick_nohz_stop_sched_tick() call from the loop Move out tick_nohz_stop_sched_tick() call from the loop in cpu_idle same as 32-bit version. Signed-off-by: Hiroshi Shimamoto Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index 78d80067b7f9..a0130eb2fa50 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c @@ -170,14 +170,13 @@ void cpu_idle(void) current_thread_info()->status |= TS_POLLING; /* endless idle loop with no priority at all */ while (1) { + tick_nohz_stop_sched_tick(); while (!need_resched()) { void (*idle)(void); if (__get_cpu_var(cpu_idle_state)) __get_cpu_var(cpu_idle_state) = 0; - tick_nohz_stop_sched_tick(); - rmb(); idle = pm_idle; if (!idle)