OSDN Git Service

qos: Execute notifier callbacks atomically
authorSultan Alsawaf <sultan@kerneltoast.com>
Fri, 17 May 2019 06:03:33 +0000 (23:03 -0700)
committer0ranko0P <ranko0p@outlook.com>
Sat, 7 Dec 2019 10:01:15 +0000 (18:01 +0800)
commit839ade8d690354deabad3a0c54e6793900979c05
treecbbb149b2d3fe737d6092e64e96a14688a3f2eae
parent930fb4096e9e2c6c490e5097d1434ab56a15dfc0
qos: Execute notifier callbacks atomically

Allowing the pm_qos notifier callbacks to execute without holding
pm_qos_lock can cause the callbacks to misbehave, e.g. the cpuidle
callback could erroneously send more IPIs than necessary.

Fix this by executing the pm_qos callbacks while pm_qos_lock is held.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
kernel/power/qos.c