]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
cpufreq: powernv: del_timer_sync when global and local pstate are equal
authorAkshay Adiga <akshay.adiga@linux.vnet.ibm.com>
Tue, 3 May 2016 15:19:36 +0000 (20:49 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 11 May 2016 00:28:00 +0000 (02:28 +0200)
commit0bc10b93f2d9c6089ce968681ef9febecdc9b8e0
tree4622db802ca892474af6eeffc2bab9f8124fe044
parent1fd3ff2874f79c04354f3e80e583afbe6fa6eaa2
cpufreq: powernv: del_timer_sync when global and local pstate are equal

When global and local pstate are equal in a powernv_target_index() call,
we don't queue a timer. But we may have timer already queued for future.
This could cause the timer to fire one additional time for no use.

Signed-off-by: Akshay Adiga <akshay.adiga@linux.vnet.ibm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/powernv-cpufreq.c