tick/nohz: Call tick_nohz_task_switch() with interrupts disabled
authorPeter Zijlstra <peterz@infradead.org>
Wed, 12 May 2021 23:29:23 +0000 (01:29 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 13 May 2021 12:21:23 +0000 (14:21 +0200)
commit0fdcccfafcffac70b452b3127cc3d981f0117655
tree9c23bd4ad372b6ea648045d1bdee187e2e0a9d5a
parenta1dfb6311c7739e21e160bc4c5575a1b21b48c87
tick/nohz: Call tick_nohz_task_switch() with interrupts disabled

Call tick_nohz_task_switch() slightly earlier after the context switch
to benefit from disabled IRQs. This way the function doesn't need to
disable them once more.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210512232924.150322-10-frederic@kernel.org
kernel/sched/core.c
kernel/time/tick-sched.c