From: Viresh Kumar Date: Wed, 10 Jun 2015 00:20:23 +0000 (+0200) Subject: cpufreq: Restart governor as soon as possible X-Git-Tag: omap-for-v4.2/fixes-rc1^2~154^2~7^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9591becbf226e3aa0f6c73494736e2c5ab14cc8d;p=pandora-kernel.git cpufreq: Restart governor as soon as possible __cpufreq_remove_dev_finish() is doing two things today: - Restarts the governor if some CPUs from concerned policy are still online. - Frees the policy if all CPUs are offline. The first task of restarting the governor can be moved to __cpufreq_remove_dev_prepare() to restart the governor early. There is no race between _prepare() and _finish() as they would be handling completely different cases. _finish() will only be required if we are going to free the policy and that has nothing to do with restarting the governor. Original-by: Saravana Kannan Signed-off-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed