diff options
| author | Rafael J. Wysocki <[email protected]> | 2024-11-15 20:58:31 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2024-11-19 20:46:51 +0000 |
| commit | f65ee094eda6e5897172a1276ffee88cf5489928 (patch) | |
| tree | 34ef0e43f6da716ab1d95ba1ab76cb6ae96bee97 /security/selinux/hooks.c | |
| parent | Merge tag 'pm-6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafa... (diff) | |
| download | kernel-f65ee094eda6e5897172a1276ffee88cf5489928.tar.gz kernel-f65ee094eda6e5897172a1276ffee88cf5489928.zip | |
cpuidle: Do not return from cpuidle_play_dead() on callback failures
If the :enter_dead() idle state callback fails for a certain state,
there may be still a shallower state for which it will work.
Because the only caller of cpuidle_play_dead(), native_play_dead(),
falls back to hlt_play_dead() if it returns an error, it should
better try all of the idle states for which :enter_dead() is present
before failing, so change it accordingly.
Also notice that the :enter_dead() state callback is not expected
to return on success (the CPU should be "dead" then), so make
cpuidle_play_dead() ignore its return value.
Signed-off-by: Rafael J. Wysocki <[email protected]>
Reviewed-by: Mario Limonciello <[email protected]>
Tested-by: Mario Limonciello <[email protected]> # 6.12-rc7
Reviewed-by: Gautham R. Shenoy <[email protected]>
Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
