diff mbox series

cpufreq: sh: Remove unused linux/sched.h headers

Message ID 20210606115828.27020-1-liuhailongg6@163.com (mailing list archive)
State Awaiting Upstream
Delegated to: Rafael Wysocki
Headers show
Series cpufreq: sh: Remove unused linux/sched.h headers | expand

Commit Message

Hailong Liu June 6, 2021, 11:58 a.m. UTC
From: Hailong Liu <liu.hailong6@zte.com.cn>

Since commit '205dcc1ecbc5(cpufreq/sh: Replace racy task affinity logic)'
the header <linux/sched.h> is useless in sh-cpufreq.c, so remove it.

Signed-off-by: Hailong Liu <liu.hailong6@zte.com.cn>
---
 drivers/cpufreq/sh-cpufreq.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Viresh Kumar June 7, 2021, 3:27 a.m. UTC | #1
On 06-06-21, 19:58, Hailong Liu wrote:
> From: Hailong Liu <liu.hailong6@zte.com.cn>
> 
> Since commit '205dcc1ecbc5(cpufreq/sh: Replace racy task affinity logic)'
> the header <linux/sched.h> is useless in sh-cpufreq.c, so remove it.
> 
> Signed-off-by: Hailong Liu <liu.hailong6@zte.com.cn>
> ---
>  drivers/cpufreq/sh-cpufreq.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/cpufreq/sh-cpufreq.c b/drivers/cpufreq/sh-cpufreq.c
> index 0ac265d47ef0..1a251e635ebd 100644
> --- a/drivers/cpufreq/sh-cpufreq.c
> +++ b/drivers/cpufreq/sh-cpufreq.c
> @@ -23,7 +23,6 @@
>  #include <linux/cpumask.h>
>  #include <linux/cpu.h>
>  #include <linux/smp.h>
> -#include <linux/sched.h>	/* set_cpus_allowed() */
>  #include <linux/clk.h>
>  #include <linux/percpu.h>
>  #include <linux/sh_clk.h>

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Rafael J. Wysocki June 7, 2021, 3:47 p.m. UTC | #2
On Mon, Jun 7, 2021 at 5:27 AM Viresh Kumar <viresh.kumar@linaro.org> wrote:
>
> On 06-06-21, 19:58, Hailong Liu wrote:
> > From: Hailong Liu <liu.hailong6@zte.com.cn>
> >
> > Since commit '205dcc1ecbc5(cpufreq/sh: Replace racy task affinity logic)'
> > the header <linux/sched.h> is useless in sh-cpufreq.c, so remove it.
> >
> > Signed-off-by: Hailong Liu <liu.hailong6@zte.com.cn>
> > ---
> >  drivers/cpufreq/sh-cpufreq.c | 1 -
> >  1 file changed, 1 deletion(-)
> >
> > diff --git a/drivers/cpufreq/sh-cpufreq.c b/drivers/cpufreq/sh-cpufreq.c
> > index 0ac265d47ef0..1a251e635ebd 100644
> > --- a/drivers/cpufreq/sh-cpufreq.c
> > +++ b/drivers/cpufreq/sh-cpufreq.c
> > @@ -23,7 +23,6 @@
> >  #include <linux/cpumask.h>
> >  #include <linux/cpu.h>
> >  #include <linux/smp.h>
> > -#include <linux/sched.h>     /* set_cpus_allowed() */
> >  #include <linux/clk.h>
> >  #include <linux/percpu.h>
> >  #include <linux/sh_clk.h>
>
> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

Applied as 5.14 material, thanks!
diff mbox series

Patch

diff --git a/drivers/cpufreq/sh-cpufreq.c b/drivers/cpufreq/sh-cpufreq.c
index 0ac265d47ef0..1a251e635ebd 100644
--- a/drivers/cpufreq/sh-cpufreq.c
+++ b/drivers/cpufreq/sh-cpufreq.c
@@ -23,7 +23,6 @@ 
 #include <linux/cpumask.h>
 #include <linux/cpu.h>
 #include <linux/smp.h>
-#include <linux/sched.h>	/* set_cpus_allowed() */
 #include <linux/clk.h>
 #include <linux/percpu.h>
 #include <linux/sh_clk.h>