All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cpufreq: intel_pstate: Remove unneeded variable
@ 2014-09-01 12:23 Gabriele Mazzotta
  2014-09-02  4:44 ` Viresh Kumar
  0 siblings, 1 reply; 2+ messages in thread
From: Gabriele Mazzotta @ 2014-09-01 12:23 UTC (permalink / raw)
  To: rjw, viresh.kumar; +Cc: linux-pm, linux-kernel, Gabriele Mazzotta

It should have been removed with commit d1b6848590af
("cpufreq / intel_pstate: Optimize intel_pstate_set_policy")

Signed-off-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
---
 drivers/cpufreq/intel_pstate.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
index e396ad3..0668b38 100644
--- a/drivers/cpufreq/intel_pstate.c
+++ b/drivers/cpufreq/intel_pstate.c
@@ -708,10 +708,6 @@ static unsigned int intel_pstate_get(unsigned int cpu_num)
 
 static int intel_pstate_set_policy(struct cpufreq_policy *policy)
 {
-	struct cpudata *cpu;
-
-	cpu = all_cpu_data[policy->cpu];
-
 	if (!policy->cpuinfo.max_freq)
 		return -ENODEV;
 
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] cpufreq: intel_pstate: Remove unneeded variable
  2014-09-01 12:23 [PATCH] cpufreq: intel_pstate: Remove unneeded variable Gabriele Mazzotta
@ 2014-09-02  4:44 ` Viresh Kumar
  0 siblings, 0 replies; 2+ messages in thread
From: Viresh Kumar @ 2014-09-02  4:44 UTC (permalink / raw)
  To: Gabriele Mazzotta; +Cc: Rafael J. Wysocki, linux-pm, Linux Kernel Mailing List

On 1 September 2014 17:53, Gabriele Mazzotta <gabriele.mzt@gmail.com> wrote:
> It should have been removed with commit d1b6848590af
> ("cpufreq / intel_pstate: Optimize intel_pstate_set_policy")
>
> Signed-off-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
> ---
>  drivers/cpufreq/intel_pstate.c | 4 ----
>  1 file changed, 4 deletions(-)
>
> diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
> index e396ad3..0668b38 100644
> --- a/drivers/cpufreq/intel_pstate.c
> +++ b/drivers/cpufreq/intel_pstate.c
> @@ -708,10 +708,6 @@ static unsigned int intel_pstate_get(unsigned int cpu_num)
>
>  static int intel_pstate_set_policy(struct cpufreq_policy *policy)
>  {
> -       struct cpudata *cpu;
> -
> -       cpu = all_cpu_data[policy->cpu];
> -
>         if (!policy->cpuinfo.max_freq)
>                 return -ENODEV;

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-02  4:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-01 12:23 [PATCH] cpufreq: intel_pstate: Remove unneeded variable Gabriele Mazzotta
2014-09-02  4:44 ` Viresh Kumar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.