Skip to content

Commit 28708e1

Browse files
zhang-ruirafaeljw
authored andcommitted
thermal: intel: pch: move cooling delay to suspend_noirq phase
Move the PCH Thermal driver suspend callback to suspend_noirq to do cooling while the system is more quiescent. Signed-off-by: Zhang Rui <[email protected]> Tested-by: Sumeet Pawnikar <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 5526654 commit 28708e1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/thermal/intel/intel_pch_thermal.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ static int pch_wpt_get_temp(struct pch_thermal_device *ptd, int *temp)
193193
return 0;
194194
}
195195

196+
/* Cool the PCH when it's overheat in .suspend_noirq phase */
196197
static int pch_wpt_suspend(struct pch_thermal_device *ptd)
197198
{
198199
u8 tsel;
@@ -455,7 +456,7 @@ static void intel_pch_thermal_remove(struct pci_dev *pdev)
455456
pci_disable_device(pdev);
456457
}
457458

458-
static int intel_pch_thermal_suspend(struct device *device)
459+
static int intel_pch_thermal_suspend_noirq(struct device *device)
459460
{
460461
struct pch_thermal_device *ptd = dev_get_drvdata(device);
461462

@@ -495,7 +496,7 @@ static const struct pci_device_id intel_pch_thermal_id[] = {
495496
MODULE_DEVICE_TABLE(pci, intel_pch_thermal_id);
496497

497498
static const struct dev_pm_ops intel_pch_pm_ops = {
498-
.suspend = intel_pch_thermal_suspend,
499+
.suspend_noirq = intel_pch_thermal_suspend_noirq,
499500
.resume = intel_pch_thermal_resume,
500501
};
501502

0 commit comments

Comments
 (0)