* [PATCH v6] cpufreq: amd-pstate: cleanup the unused and duplicated headers declaration
@ 2022-09-01 6:23 Perry Yuan
2022-09-01 6:31 ` Viresh Kumar
2022-09-01 14:55 ` Punit Agrawal
0 siblings, 2 replies; 5+ messages in thread
From: Perry Yuan @ 2022-09-01 6:23 UTC (permalink / raw)
To: rafael.j.wysocki, ray.huang, viresh.kumar
Cc: Deepak.Sharma, Mario.Limonciello, Nathan.Fontenot,
Alexander.Deucher, Jinzhou.Su, Shimmer.Huang, Xiaojian.Du,
Li.Meng, linux-pm, linux-kernel, Perry Yuan
Cleanup the headers declaration which are not used
actually and some duplicated declaration which is declarated in some
other headers already, it will help to simplify the header part.
Reviewed-by: Huang Rui <ray.huang@amd.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Perry Yuan <Perry.Yuan@amd.com>
---
drivers/cpufreq/amd-pstate.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c
index 9ac75c1cde9c..9cf7bc162e7c 100644
--- a/drivers/cpufreq/amd-pstate.c
+++ b/drivers/cpufreq/amd-pstate.c
@@ -31,19 +31,15 @@
#include <linux/compiler.h>
#include <linux/dmi.h>
#include <linux/slab.h>
-#include <linux/acpi.h>
#include <linux/io.h>
#include <linux/delay.h>
#include <linux/uaccess.h>
#include <linux/static_call.h>
-#include <acpi/processor.h>
#include <acpi/cppc_acpi.h>
#include <asm/msr.h>
#include <asm/processor.h>
-#include <asm/cpufeature.h>
-#include <asm/cpu_device_id.h>
#include "amd-pstate-trace.h"
#define AMD_PSTATE_TRANSITION_LATENCY 0x20000
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v6] cpufreq: amd-pstate: cleanup the unused and duplicated headers declaration
2022-09-01 6:23 [PATCH v6] cpufreq: amd-pstate: cleanup the unused and duplicated headers declaration Perry Yuan
@ 2022-09-01 6:31 ` Viresh Kumar
2022-09-01 6:56 ` Yuan, Perry
2022-09-01 14:55 ` Punit Agrawal
1 sibling, 1 reply; 5+ messages in thread
From: Viresh Kumar @ 2022-09-01 6:31 UTC (permalink / raw)
To: Perry Yuan
Cc: rafael.j.wysocki, ray.huang, Deepak.Sharma, Mario.Limonciello,
Nathan.Fontenot, Alexander.Deucher, Jinzhou.Su, Shimmer.Huang,
Xiaojian.Du, Li.Meng, linux-pm, linux-kernel
On 01-09-22, 14:23, Perry Yuan wrote:
> Cleanup the headers declaration which are not used
> actually and
This is okay.
> some duplicated declaration which is declarated in some
> other headers already, it will help to simplify the header part.
This isn't.
Every file should directly include headers they use definitions from,
instead of relying on indirect inclusions.
--
viresh
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH v6] cpufreq: amd-pstate: cleanup the unused and duplicated headers declaration
2022-09-01 6:31 ` Viresh Kumar
@ 2022-09-01 6:56 ` Yuan, Perry
2022-09-01 7:00 ` Viresh Kumar
0 siblings, 1 reply; 5+ messages in thread
From: Yuan, Perry @ 2022-09-01 6:56 UTC (permalink / raw)
To: Viresh Kumar
Cc: rafael.j.wysocki@intel.com, Huang, Ray, Sharma, Deepak,
Limonciello, Mario, Fontenot, Nathan, Deucher, Alexander,
Su, Jinzhou (Joe), Huang, Shimmer, Du, Xiaojian,
Meng, Li (Jassmine), linux-pm@vger.kernel.org,
linux-kernel@vger.kernel.org
[AMD Official Use Only - General]
Hi Viresh,
> -----Original Message-----
> From: Viresh Kumar <viresh.kumar@linaro.org>
> Sent: Thursday, September 1, 2022 2:32 PM
> To: Yuan, Perry <Perry.Yuan@amd.com>
> Cc: rafael.j.wysocki@intel.com; Huang, Ray <Ray.Huang@amd.com>; Sharma,
> Deepak <Deepak.Sharma@amd.com>; Limonciello, Mario
> <Mario.Limonciello@amd.com>; Fontenot, Nathan
> <Nathan.Fontenot@amd.com>; Deucher, Alexander
> <Alexander.Deucher@amd.com>; Su, Jinzhou (Joe) <Jinzhou.Su@amd.com>;
> Huang, Shimmer <Shimmer.Huang@amd.com>; Du, Xiaojian
> <Xiaojian.Du@amd.com>; Meng, Li (Jassmine) <Li.Meng@amd.com>; linux-
> pm@vger.kernel.org; linux-kernel@vger.kernel.org
> Subject: Re: [PATCH v6] cpufreq: amd-pstate: cleanup the unused and
> duplicated headers declaration
>
> [CAUTION: External Email]
>
> On 01-09-22, 14:23, Perry Yuan wrote:
> > Cleanup the headers declaration which are not used actually and
>
> This is okay.
Thank you help to confirm this .
>
> > some duplicated declaration which is declarated in some other headers
> > already, it will help to simplify the header part.
>
> This isn't.
>
> Every file should directly include headers they use definitions from, instead of
> relying on indirect inclusions.
>
> --
> Viresh
Do I need to update the commit with another V7 version ?
If need, I will update this later.
Thank you.
Perry.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v6] cpufreq: amd-pstate: cleanup the unused and duplicated headers declaration
2022-09-01 6:56 ` Yuan, Perry
@ 2022-09-01 7:00 ` Viresh Kumar
0 siblings, 0 replies; 5+ messages in thread
From: Viresh Kumar @ 2022-09-01 7:00 UTC (permalink / raw)
To: Yuan, Perry
Cc: rafael.j.wysocki@intel.com, Huang, Ray, Sharma, Deepak,
Limonciello, Mario, Fontenot, Nathan, Deucher, Alexander,
Su, Jinzhou (Joe), Huang, Shimmer, Du, Xiaojian,
Meng, Li (Jassmine), linux-pm@vger.kernel.org,
linux-kernel@vger.kernel.org
On 01-09-22, 06:56, Yuan, Perry wrote:
> > On 01-09-22, 14:23, Perry Yuan wrote:
> > > Cleanup the headers declaration which are not used actually and
> >
> > This is okay.
>
> Thank you help to confirm this .
>
> >
> > > some duplicated declaration which is declarated in some other headers
> > > already, it will help to simplify the header part.
> >
> > This isn't.
> >
> > Every file should directly include headers they use definitions from, instead of
> > relying on indirect inclusions.
> >
> > --
> > Viresh
>
> Do I need to update the commit with another V7 version ?
I am not sure which headers you removed are still required, working
for now since included indirectly. If there are any, then better to
get a new version out.
--
viresh
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v6] cpufreq: amd-pstate: cleanup the unused and duplicated headers declaration
2022-09-01 6:23 [PATCH v6] cpufreq: amd-pstate: cleanup the unused and duplicated headers declaration Perry Yuan
2022-09-01 6:31 ` Viresh Kumar
@ 2022-09-01 14:55 ` Punit Agrawal
1 sibling, 0 replies; 5+ messages in thread
From: Punit Agrawal @ 2022-09-01 14:55 UTC (permalink / raw)
To: Perry Yuan
Cc: rafael.j.wysocki, ray.huang, viresh.kumar, Deepak.Sharma,
Mario.Limonciello, Nathan.Fontenot, Alexander.Deucher, Jinzhou.Su,
Shimmer.Huang, Xiaojian.Du, Li.Meng, linux-pm, linux-kernel
Hi Perry,
Perry Yuan <Perry.Yuan@amd.com> writes:
> Cleanup the headers declaration which are not used
> actually and some duplicated declaration which is declarated in some
> other headers already, it will help to simplify the header part.
>
> Reviewed-by: Huang Rui <ray.huang@amd.com>
> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
> Signed-off-by: Perry Yuan <Perry.Yuan@amd.com>
> ---
> drivers/cpufreq/amd-pstate.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c
> index 9ac75c1cde9c..9cf7bc162e7c 100644
> --- a/drivers/cpufreq/amd-pstate.c
> +++ b/drivers/cpufreq/amd-pstate.c
> @@ -31,19 +31,15 @@
> #include <linux/compiler.h>
> #include <linux/dmi.h>
> #include <linux/slab.h>
> -#include <linux/acpi.h>
> #include <linux/io.h>
> #include <linux/delay.h>
> #include <linux/uaccess.h>
> #include <linux/static_call.h>
>
> -#include <acpi/processor.h>
> #include <acpi/cppc_acpi.h>
>
> #include <asm/msr.h>
> #include <asm/processor.h>
> -#include <asm/cpufeature.h>
> -#include <asm/cpu_device_id.h>
> #include "amd-pstate-trace.h"
>
> #define AMD_PSTATE_TRANSITION_LATENCY 0x20000
The patch has the same issue as mentioned in the previous version.
Please don't remove any header includes whose definitions are directly
used in amd-pstate.c. Look at example from my previous comment.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-09-01 14:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-01 6:23 [PATCH v6] cpufreq: amd-pstate: cleanup the unused and duplicated headers declaration Perry Yuan
2022-09-01 6:31 ` Viresh Kumar
2022-09-01 6:56 ` Yuan, Perry
2022-09-01 7:00 ` Viresh Kumar
2022-09-01 14:55 ` Punit Agrawal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).