From: Rob Herring Date: Tue, 26 Feb 2013 22:16:53 +0000 (-0600) Subject: cpuidle: calxeda: add cpu_pm_enter/exit calls X-Git-Tag: upstream/snapshot3+hdmi~4048^2~11^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34a5eeb202eb43f36dd39a287669e0b686ddf728;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git cpuidle: calxeda: add cpu_pm_enter/exit calls Wnen powergating the core, we need to call cpu pm notifiers to save VFP state (!SMP only) and resetting the breakpoint h/w. Signed-off-by: Rob Herring Cc: "Rafael J. Wysocki" Acked-by: Daniel Lezcano Cc: linux-pm@vger.kernel.org --- diff --git a/drivers/cpuidle/cpuidle-calxeda.c b/drivers/cpuidle/cpuidle-calxeda.c index 3460584..bed707a 100644 --- a/drivers/cpuidle/cpuidle-calxeda.c +++ b/drivers/cpuidle/cpuidle-calxeda.c @@ -21,6 +21,7 @@ */ #include +#include #include #include #include @@ -66,8 +67,11 @@ static int calxeda_pwrdown_idle(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) { + cpu_pm_enter(); highbank_set_cpu_jump(smp_processor_id(), cpu_resume); cpu_suspend(0, calxeda_idle_finish); + cpu_pm_exit(); + return index; }