time/sched_clock: Disable interrupts in sched_clock_register()
authorPaul Cercueil <paul@crapouillou.net>
Tue, 7 Jan 2020 01:06:29 +0000 (02:06 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 9 Jan 2020 17:50:18 +0000 (18:50 +0100)
commit2707745533d6d38fa7d3a2212f1fd599c3879491
treef2a00fbd77111415632d80b5842d12b18587619b
parentc79f46a282390e0f5b306007bf7b11a46d529538
time/sched_clock: Disable interrupts in sched_clock_register()

Instead of issueing a warning if sched_clock_register() is called from a
context where IRQs are enabled, the code now ensures that IRQs are indeed
disabled.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200107010630.954648-1-paul@crapouillou.net
kernel/time/sched_clock.c