aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorValentin Schneider <[email protected]>2021-08-11 20:14:31 +0000
committerRafael J. Wysocki <[email protected]>2021-08-16 16:55:32 +0000
commitb2f6662ac08d0e7c25574ce53623c71bdae9dd78 (patch)
treeb3c6f49796e96e69cb52f70fe7f16d2fec4b76ef /scripts/clang-tools/gen_compile_commands.py
parentLinux 5.14-rc6 (diff)
downloadkernel-b2f6662ac08d0e7c25574ce53623c71bdae9dd78.tar.gz
kernel-b2f6662ac08d0e7c25574ce53623c71bdae9dd78.zip
PM: cpu: Make notifier chain use a raw_spinlock_t
Invoking atomic_notifier_chain_notify() requires acquiring a spinlock_t, which can block under CONFIG_PREEMPT_RT. Notifications for members of the cpu_pm notification chain will be issued by the idle task, which can never block. Making *all* atomic_notifiers use a raw_spinlock is too big of a hammer, as only notifications issued by the idle task are problematic. Special-case cpu_pm_notifier_chain by kludging a raw_notifier and raw_spinlock_t together, matching the atomic_notifier behavior with a raw_spinlock_t. Fixes: 70d932985757 ("notifier: Fix broken error handling pattern") Signed-off-by: Valentin Schneider <[email protected]> Acked-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions