cpufreq: Tegra: implement intermediate frequency callbacks
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 2 Jun 2014 17:19:29 +0000 (22:49 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 5 Jun 2014 21:34:07 +0000 (23:34 +0200)
commit00917ddc7c2fa7d2790241ed3570e8e4a0466923
treeb186a5e397ea7abe4e5531f6432ca010a222a374
parent1c03a2d04d7ab6d27c1fef8614f08187d974bd21
cpufreq: Tegra: implement intermediate frequency callbacks

Tegra has been switching to intermediate frequency (pll_p_clk) forever.
CPUFreq core has better support for handling notifications for these
frequencies and so we can adapt Tegra's driver to it.

Also do a WARN() if clk_set_parent() fails while moving back to pll_x
as we should have atleast restored to earlier frequency on error.

Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/tegra-cpufreq.c