Skip to content

Commit 60313c2

Browse files
Frederic WeisbeckerKAGA-KOKO
authored andcommitted
tick/sched: Don't clear ts::next_tick again in can_stop_idle_tick()
The tick sched structure is already cleared from tick_cancel_sched_timer(), so there is no need to clear that field again. Signed-off-by: Frederic Weisbecker <frederic@kernel.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20240225225508.11587-7-frederic@kernel.org
1 parent 3650f49 commit 60313c2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

kernel/time/tick-sched.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,11 +1143,6 @@ static bool can_stop_idle_tick(int cpu, struct tick_sched *ts)
11431143
if (unlikely(!cpu_online(cpu))) {
11441144
if (cpu == tick_do_timer_cpu)
11451145
tick_do_timer_cpu = TICK_DO_TIMER_NONE;
1146-
/*
1147-
* Make sure the CPU doesn't get fooled by obsolete tick
1148-
* deadline if it comes back online later.
1149-
*/
1150-
ts->next_tick = 0;
11511146
return false;
11521147
}
11531148

0 commit comments

Comments
 (0)