aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/amd/pmc/pmc.c
diff options
context:
space:
mode:
authorIlpo Järvinen <[email protected]>2025-05-11 21:18:11 +0000
committerIlpo Järvinen <[email protected]>2025-05-11 21:18:11 +0000
commit593ee93aa710ea0159f363b2f1950ecb6c9ddca2 (patch)
tree806cc74dd9a3f0481f320455b0a59e21300f7958 /drivers/platform/x86/amd/pmc/pmc.c
parentplatform/mellanox: mlxreg-dpu: Fix smatch warnings (diff)
parentplatform/x86: asus-wmi: Fix wlan_ctrl_by_user detection (diff)
downloadkernel-593ee93aa710ea0159f363b2f1950ecb6c9ddca2.tar.gz
kernel-593ee93aa710ea0159f363b2f1950ecb6c9ddca2.zip
Merge branch 'fixes' into for-next
Resolve conflicts in dell/alienware-wmi-wmax and asus-wmi, and enable applying a few amd/hsmp patches that depend on changes in the fixes branch.
Diffstat (limited to 'drivers/platform/x86/amd/pmc/pmc.c')
-rw-r--r--drivers/platform/x86/amd/pmc/pmc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/platform/x86/amd/pmc/pmc.c b/drivers/platform/x86/amd/pmc/pmc.c
index d789d6cab794..0329fafe14eb 100644
--- a/drivers/platform/x86/amd/pmc/pmc.c
+++ b/drivers/platform/x86/amd/pmc/pmc.c
@@ -644,10 +644,9 @@ static void amd_pmc_s2idle_check(void)
struct smu_metrics table;
int rc;
- /* CZN: Ensure that future s0i3 entry attempts at least 10ms passed */
- if (pdev->cpu_id == AMD_CPU_ID_CZN && !get_metrics_table(pdev, &table) &&
- table.s0i3_last_entry_status)
- usleep_range(10000, 20000);
+ /* Avoid triggering OVP */
+ if (!get_metrics_table(pdev, &table) && table.s0i3_last_entry_status)
+ msleep(2500);
/* Dump the IdleMask before we add to the STB */
amd_pmc_idlemask_read(pdev, pdev->dev, NULL);