cpufreq: governors: Reset tunables only for cpufreq_unregister_governor()
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 1 Feb 2013 05:42:58 +0000 (05:42 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 2 Feb 2013 00:29:31 +0000 (01:29 +0100)
commitb394058f064848deac7a7cd6942b6521d7b3fe1d
tree2e6272ca452cf2d116f00a561344a4672f751063
parent4447266b842d27f77b017a59eb9dc38ad7b299f1
cpufreq: governors: Reset tunables only for cpufreq_unregister_governor()

Currently, whenever governor->governor() is called for CPUFRREQ_GOV_START event
we reset few tunables of governor. Which isn't correct, as this routine is
called for every cpu hot-[un]plugging event. We should actually be resetting
these only when the governor module is removed and re-installed.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c
drivers/cpufreq/cpufreq_governor.c
include/linux/cpufreq.h
This page took 0.041094 seconds and 5 git commands to generate.