]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
tick/sched: Remove bogus boot "safety" check
authorThomas Gleixner <tglx@linutronix.de>
Sun, 6 Dec 2020 21:12:55 +0000 (22:12 +0100)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 8 Jan 2021 11:25:26 +0000 (12:25 +0100)
commit48e6b1842735b18a9f57b4410e867519d0f64bac
tree682c7e2cc4186f3658558a1437cc30221e8d3188
parent5ec282ea724f781986fcf9ea02ac540c669a4fac
tick/sched: Remove bogus boot "safety" check

BugLink: https://bugs.launchpad.net/bugs/1910742
[ Upstream commit ba8ea8e7dd6e1662e34e730eadfc52aa6816f9dd ]

can_stop_idle_tick() checks whether the do_timer() duty has been taken over
by a CPU on boot. That's silly because the boot CPU always takes over with
the initial clockevent device.

But even if no CPU would have installed a clockevent and taken over the
duty then the question whether the tick on the current CPU can be stopped
or not is moot. In that case the current CPU would have no clockevent
either, so there would be nothing to keep ticking.

Remove it.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lore.kernel.org/r/20201206212002.725238293@linutronix.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
kernel/time/tick-sched.c