cpufreq: CPPC: remove the acpi_disabled check
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
@@ -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
Quoted 13 lines · Perry Yuan
"
acpi_cpc_valid" function already includes theacpi_disabledcheck and we can remove the duplicated check hereSigned-off-by Perry Yuan <[email protected]>--- drivers/cpufreq/cppc_cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/cpufreq/cppc_cpufreq.c +0
-0
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
-0return -ENODEV ;cppc_check_hisi_workaround ();
[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 theacpi_disabledcheckQuoted 16 lines · Perry Yuan
"
acpi_cpc_valid" function already includes theacpi_disabledcheck and we can remove the duplicated check hereSigned-off-by Perry Yuan <[email protected]>--- drivers/cpufreq/cppc_cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0
b/drivers/cpufreq/cppc_cpufreq.cindex24eaf0ec344d..9adb7612993e100644drivers/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
-0return -ENODEV ;cppc_check_hisi_workaround ();