]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6c2117f8c2bc8fa48b05165bb0a37ab02fe23bee
treef2a00fbd77111415632d80b5842d12b18587619b
parentcdc2320cbb59dea44aae73acf1819cf7501d06d3
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