diff options
author | 2021-08-11 21:14:31 +0100 | |
---|---|---|
committer | 2021-08-16 18:55:32 +0200 | |
commit | b2f6662ac08d0e7c25574ce53623c71bdae9dd78 (patch) | |
tree | b3c6f49796e96e69cb52f70fe7f16d2fec4b76ef /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 5.14-rc6 (diff) | |
download | linux-dev-b2f6662ac08d0e7c25574ce53623c71bdae9dd78.tar.xz linux-dev-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 <valentin.schneider@arm.com>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions