Skip to contentSkip to conversation

cpufreq: CPPC: remove the acpi_disabled check

PATCH Superseded Perry Yuan 2 participants 3 messages Jul 9, 2022 – Jul 12, 2022

Subsystems (2)

v2 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Perry Yuan

author
#0 lore raw

PATCH v2 14/14 cpufreq: CPPC: remove the acpi_disabled check

"acpi_cpc_valid" function already includes the acpi_disabled check and we can remove the duplicated check here

---
 drivers/cpufreq/cppc_cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/cppc_cpufreq.c +1 -1
index 24eaf0ec344d..9adb7612993e 100644
@@ -947,7 +947,7 @@ static int __init cppc_cpufreq_init(void)
 {
 	int ret;
 
-	if ((acpi_disabled) || !acpi_cpc_valid())
+	if (!acpi_cpc_valid())
 		return -ENODEV;
 
 	cppc_check_hisi_workaround();
Signature · 1 line
2.25.1
#1 lore raw
Quoted 13 lines · Perry Yuan

"acpi_cpc_valid" function already includes the acpi_disabled check and we can remove the duplicated check here

---
 drivers/cpufreq/cppc_cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/cppc_cpufreq.c +0 -0
index 24eaf0ec344d..9adb7612993e 100644

drivers/cpufreq/cppc_cpufreq.c static int __init cppc_cpufreq_init(void) · line 950

Quoted 5 lines
drivers/cpufreq/cppc_cpufreq.c +1 -1
@@ -947,7 +947,7 @@ static int __init cppc_cpufreq_init(void)
 {
 	int ret;
 
-	if ((acpi_disabled) || !acpi_cpc_valid())
+	if (!acpi_cpc_valid())

Same comment here as for patch 13/14, this change should be part of patch 11/14.

-Nathan

Quoted 3 lines
drivers/cpufreq/cppc_cpufreq.c +0 -0
 		return -ENODEV;
 
 	cppc_check_hisi_workaround();
#2 lore raw

[AMD Official Use Only - General]

Hi Nathan.

Quoted 32 lines

-----Original Message-----
From: Fontenot, Nathan <[email protected]>
Sent: Tuesday, July 12, 2022 3:30 AM
To: Yuan, Perry <[email protected]>; [email protected]; [email protected]; Huang, Ray <[email protected]>
Cc: Sharma, Deepak <[email protected]>; Limonciello, Mario <[email protected]>; Fontenot, Nathan <[email protected]>; Deucher, Alexander <[email protected]>; Su, Jinzhou (Joe) <[email protected]>; Huang, Shimmer <[email protected]>; Du, Xiaojian <[email protected]>; Meng, Li (Jassmine) <[email protected]>; linux- [email protected]; [email protected]
Subject: Re: [PATCH v2 14/14] cpufreq: CPPC: remove the acpi_disabled check

Quoted 16 lines · Perry Yuan

"acpi_cpc_valid" function already includes the acpi_disabled check and we can remove the duplicated check here

---
 drivers/cpufreq/cppc_cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/cpufreq/cppc_cpufreq.c index 24eaf0ec344d..9adb7612993e 100644

drivers/cpufreq/cppc_cpufreq.c +0 -0
@@ -947,7 +947,7 @@ static int __init cppc_cpufreq_init(void)  {
 	int ret;
 
Quoted 7 lines

drivers/cpufreq/cppc_cpufreq.c static int __init cppc_cpufreq_init(void) · line 950

Quoted 2 lines
drivers/cpufreq/cppc_cpufreq.c +1 -1
-	if ((acpi_disabled) || !acpi_cpc_valid())
+	if (!acpi_cpc_valid())

Same comment here as for patch 13/14, this change should be part of patch 11/14.

-Nathan

I can do that, at first, I also want to make the changes in one patch, but I posted this patch to see if maintainers can accept this way or another way.

Perry.

Quoted 4 lines
Quoted 4 lines
drivers/cpufreq/cppc_cpufreq.c +0 -0
 		return -ENODEV;
 
 	cppc_check_hisi_workaround();