Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20d64ff3 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "idle: Move arch_cpu_idle_enter/exit outside tick_nohz_idle_enter/exit"

parents eb228b5f 0c0e0da6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -68,6 +68,7 @@ void __weak arch_cpu_idle(void)
static void cpu_idle_loop(void)
{
	while (1) {
		arch_cpu_idle_enter();
		tick_nohz_idle_enter();

		while (!need_resched()) {
@@ -75,7 +76,6 @@ static void cpu_idle_loop(void)
			rmb();

			local_irq_disable();
			arch_cpu_idle_enter();

			/*
			 * In poll mode we reenable interrupts and spin.
@@ -101,9 +101,9 @@ static void cpu_idle_loop(void)
				}
				__current_set_polling();
			}
			arch_cpu_idle_exit();
		}
		tick_nohz_idle_exit();
		arch_cpu_idle_exit();
		schedule_preempt_disabled();
		if (cpu_is_offline(smp_processor_id()))
			arch_cpu_idle_dead();