diff options
Diffstat (limited to 'SOURCES/0001-amd-pstate.patch')
-rw-r--r-- | SOURCES/0001-amd-pstate.patch | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/SOURCES/0001-amd-pstate.patch b/SOURCES/0001-amd-pstate.patch index 72d5cc6..8b81bc4 100644 --- a/SOURCES/0001-amd-pstate.patch +++ b/SOURCES/0001-amd-pstate.patch @@ -1,4 +1,4 @@ -From b2368823f6d79235b4e706263855373ff2fed1e5 Mon Sep 17 00:00:00 2001 +From 4ca68a16f48ef388742a25c6d6643bf996e8d1d5 Mon Sep 17 00:00:00 2001 From: Peter Jung <admin@ptr1337.dev> Date: Fri, 5 Jul 2024 10:31:29 +0200 Subject: [PATCH 02/10] amd-pstate @@ -13,8 +13,8 @@ Signed-off-by: Peter Jung <admin@ptr1337.dev> drivers/cpufreq/acpi-cpufreq.c | 3 +- drivers/cpufreq/amd-pstate.c | 356 ++++++++++++++------ drivers/cpufreq/amd-pstate.h | 16 +- - drivers/cpufreq/cpufreq.c | 14 +- - 9 files changed, 292 insertions(+), 120 deletions(-) + drivers/cpufreq/cpufreq.c | 11 +- + 9 files changed, 290 insertions(+), 119 deletions(-) diff --git a/Documentation/admin-guide/pm/amd-pstate.rst b/Documentation/admin-guide/pm/amd-pstate.rst index 1e0d101b020a..d0324d44f548 100644 @@ -102,7 +102,7 @@ index 438c9e75a04d..97c2d4f15d76 100644 help This kernel module is used for testing. It's safe to say M here. diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c -index 37f1cdf46d29..094f1f91a9b3 100644 +index 4ac3a35dcd98..f4f8587c4ea0 100644 --- a/drivers/cpufreq/acpi-cpufreq.c +++ b/drivers/cpufreq/acpi-cpufreq.c @@ -50,8 +50,6 @@ enum { @@ -846,7 +846,7 @@ index bc341f35908d..cc8bb2bc325a 100644 #endif /* _LINUX_AMD_PSTATE_H */ diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c -index fd9c3ed21f49..bbbeb8b90313 100644 +index d7630d9cdb2f..bbbeb8b90313 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -614,10 +614,9 @@ static ssize_t show_boost(struct kobject *kobj, @@ -876,16 +876,6 @@ index fd9c3ed21f49..bbbeb8b90313 100644 return -EINVAL; if (!cpufreq_driver->boost_enabled) -@@ -1431,7 +1430,8 @@ static int cpufreq_online(unsigned int cpu) - } - - /* Let the per-policy boost flag mirror the cpufreq_driver boost during init */ -- policy->boost_enabled = cpufreq_boost_enabled() && policy_has_boost_freq(policy); -+ if (cpufreq_boost_enabled() && policy_has_boost_freq(policy)) -+ policy->boost_enabled = true; - - /* - * The initialization has succeeded and the policy is online. -- -2.45.2 +2.46.0.rc1 |