Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
power: Don't disable cpuidle when entering suspend
Browse files Browse the repository at this point in the history
cpuidle was disabled while entering suspend as part of commit
8651f97 in order to work around some
ACPI bugs. However, there's no reason to do this on modern
platforms. Leaving cpuidle enabled can result in improved power
consumption if dpm_resume_noirq runs for a significant time.

Change-Id: Ie182785b176f448698c0264eba554d1e315e8a06
Signed-off-by: Danny Lin <[email protected]>
Signed-off-by: Adithya R <[email protected]>
  • Loading branch information
Tim Murray authored and mvaisakh committed Apr 24, 2023
1 parent f483f1e commit 0b54fcf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/base/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,6 @@ void dpm_resume_noirq(pm_message_t state)

resume_device_irqs();
device_wakeup_disarm_wake_irqs();

cpuidle_resume();
}

static pm_callback_t dpm_subsys_resume_early_cb(struct device *dev,
Expand Down Expand Up @@ -1446,8 +1444,6 @@ int dpm_suspend_noirq(pm_message_t state)
{
int ret;

cpuidle_pause();

device_wakeup_arm_wake_irqs();
suspend_device_irqs();

Expand Down

0 comments on commit 0b54fcf

Please sign in to comment.