diff options
Diffstat (limited to 'SOURCES/0001-amd-pstate.patch')
-rw-r--r-- | SOURCES/0001-amd-pstate.patch | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/SOURCES/0001-amd-pstate.patch b/SOURCES/0001-amd-pstate.patch index 6e929f5..74fc021 100644 --- a/SOURCES/0001-amd-pstate.patch +++ b/SOURCES/0001-amd-pstate.patch @@ -1,16 +1,16 @@ -From 841eda55513de3b157eb94460e37e7b779980e0c Mon Sep 17 00:00:00 2001 +From f3018861226770c17b47bcda4d4fd4291ad00ae6 Mon Sep 17 00:00:00 2001 From: Peter Jung <admin@ptr1337.dev> -Date: Wed, 12 Jun 2024 18:19:17 +0200 -Subject: [PATCH 02/11] amd-pstate +Date: Sun, 16 Jun 2024 15:33:06 +0200 +Subject: [PATCH 02/10] amd-pstate Signed-off-by: Peter Jung <admin@ptr1337.dev> --- - drivers/cpufreq/amd-pstate.c | 267 +++++++++++++++++++++-------------- + drivers/cpufreq/amd-pstate.c | 265 +++++++++++++++++++++-------------- include/linux/amd-pstate.h | 20 ++- - 2 files changed, 178 insertions(+), 109 deletions(-) + 2 files changed, 177 insertions(+), 108 deletions(-) diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c -index 28166df81cf8d..cde3b91b4422a 100644 +index e263db0385ab..cde3b91b4422 100644 --- a/drivers/cpufreq/amd-pstate.c +++ b/drivers/cpufreq/amd-pstate.c @@ -68,6 +68,7 @@ static struct cpufreq_driver amd_pstate_epp_driver; @@ -142,15 +142,6 @@ index 28166df81cf8d..cde3b91b4422a 100644 static int amd_pstate_set_boost(struct cpufreq_policy *policy, int state) { struct amd_cpudata *cpudata = policy->driver_data; -@@ -705,7 +669,7 @@ static int amd_pstate_set_boost(struct cpufreq_policy *policy, int state) - if (state) - policy->cpuinfo.max_freq = cpudata->max_freq; - else -- policy->cpuinfo.max_freq = cpudata->nominal_freq; -+ policy->cpuinfo.max_freq = cpudata->nominal_freq * 1000; - - policy->max = policy->cpuinfo.max_freq; - @@ -844,9 +808,93 @@ static void amd_pstate_update_limits(unsigned int cpu) mutex_unlock(&amd_pstate_driver_lock); } @@ -388,7 +379,7 @@ index 28166df81cf8d..cde3b91b4422a 100644 case AMD_PSTATE_UNDEFINED: /* Disable on the following configs by default: diff --git a/include/linux/amd-pstate.h b/include/linux/amd-pstate.h -index d21838835abda..d58fc022ec466 100644 +index d21838835abd..d58fc022ec46 100644 --- a/include/linux/amd-pstate.h +++ b/include/linux/amd-pstate.h @@ -49,13 +49,17 @@ struct amd_aperf_mperf { |