Commit e72ccd4
committed
PM: sleep: Drop superfluous might_sleep() calls
JIRA: https://issues.redhat.com/browse/RHEL-109251
commit 5e8be76
Author: Zhongqiu Han <quic_zhonhan@quicinc.com>
Date: Thu, 03 Jul 2025 16:34:34 +0000
Drop superfluous might_sleep() calls from dpm_resume(), dpm_complete(),
and dpm_prepare(). These functions already invoke primitives that
implicitly check for sleep in atomic context:
- dpm_resume() and dpm_complete() invoke mutex_lock(), which internally
triggers might_sleep().
- dpm_prepare() calls wait_for_device_probe(), which internally uses
flush_work(), and thus might_sleep().
These annotations are unnecessary and can be dropped to reduce clutter.
Signed-off-by: Zhongqiu Han <quic_zhonhan@quicinc.com>
Link: https://patch.msgid.link/20250617084650.341262-1-quic_zhonhan@quicinc.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>1 parent 1f49a55 commit e72ccd4
1 file changed
+0
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1109 | 1109 | | |
1110 | 1110 | | |
1111 | 1111 | | |
1112 | | - | |
1113 | 1112 | | |
1114 | 1113 | | |
1115 | 1114 | | |
| |||
1212 | 1211 | | |
1213 | 1212 | | |
1214 | 1213 | | |
1215 | | - | |
1216 | 1214 | | |
1217 | 1215 | | |
1218 | 1216 | | |
| |||
2123 | 2121 | | |
2124 | 2122 | | |
2125 | 2123 | | |
2126 | | - | |
2127 | 2124 | | |
2128 | 2125 | | |
2129 | 2126 | | |
| |||
0 commit comments