[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160407042849.GB14903@vireshk-i7>
Date: Thu, 7 Apr 2016 09:58:49 +0530
From: Viresh Kumar <viresh.kumar@...aro.org>
To: "Rafael J. Wysocki" <rjw@...ysocki.net>
Cc: Linux PM list <linux-pm@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>
Subject: Re: [PATCH] cpufreq: Simplify switch () in cpufreq_cpu_callback()
On 07-04-16, 03:30, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@...el.com>
>
> Merge two switch entries that do the same thing in
> cpufreq_cpu_callback().
>
> No functional changes.
>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@...el.com>
> ---
> drivers/cpufreq/cpufreq.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> Index: linux-pm/drivers/cpufreq/cpufreq.c
> ===================================================================
> --- linux-pm.orig/drivers/cpufreq/cpufreq.c
> +++ linux-pm/drivers/cpufreq/cpufreq.c
> @@ -2312,16 +2312,13 @@ static int cpufreq_cpu_callback(struct n
>
> switch (action & ~CPU_TASKS_FROZEN) {
> case CPU_ONLINE:
> + case CPU_DOWN_FAILED:
> cpufreq_online(cpu);
> break;
>
> case CPU_DOWN_PREPARE:
> cpufreq_offline(cpu);
> break;
> -
> - case CPU_DOWN_FAILED:
> - cpufreq_online(cpu);
> - break;
> }
> return NOTIFY_OK;
> }
Acked-by: Viresh Kumar <viresh.kumar@...aro.org>
--
viresh
Powered by blists - more mailing lists