cpufreq: powernv: Set the cpus to nominal frequency during reboot/kexec
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Mon, 29 Sep 2014 13:49:11 +0000 (15:49 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 29 Sep 2014 13:53:04 +0000 (15:53 +0200)
commitcf30af76952b0cb20c4a2cf8db16d69ca59eb652
tree71e8b386f77b3f2d045f1c887a79589d44c84ddc
parentb120339c787b243cdbe3f67401b4aa5625d88ff3
cpufreq: powernv: Set the cpus to nominal frequency during reboot/kexec

This patch ensures the cpus to kexec/reboot at nominal frequency.
Nominal frequency is the highest cpu frequency on PowerPC at
which the cores can run without getting throttled.

If the host kernel had set the cpus to a low pstate and then it
kexecs/reboots to a cpufreq disabled kernel it would cause the target
kernel to perform poorly. It will also increase the boot up time of
the target kernel. So set the cpus to high pstate, in this case to
nominal frequency before rebooting to avoid such scenarios.

The reboot notifier will set the cpus to nominal frequncy.

Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Reviewed-by: Preeti U Murthy <preeti@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
This page took 0.02632 seconds and 5 git commands to generate.