Message ID | 20191015170015.1135-10-digetx@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | Consolidate and improve NVIDIA Tegra CPUIDLE driver(s) | expand |
On Tue, Oct 15, 2019 at 08:00:06PM +0300, Dmitry Osipenko wrote: > The new CPUIDLE driver uses the Tegra's CLK API and that driver won't > strictly depend on CONFIG_PM_SLEEP, hence add the required stubs in > order to allow compiling of the new driver with the CONFIG_PM_SLEEP=n. > > Signed-off-by: Dmitry Osipenko <digetx@gmail.com> > --- > include/linux/clk/tegra.h | 13 +++++++++++++ > 1 file changed, 13 insertions(+) Applied to for-5.5/clk, thanks. Thierry
diff --git a/include/linux/clk/tegra.h b/include/linux/clk/tegra.h index 6a7cbc3cfadc..2b1b35240074 100644 --- a/include/linux/clk/tegra.h +++ b/include/linux/clk/tegra.h @@ -108,6 +108,19 @@ static inline void tegra_cpu_clock_resume(void) tegra_cpu_car_ops->resume(); } +#else +static inline bool tegra_cpu_rail_off_ready(void) +{ + return false; +} + +static inline void tegra_cpu_clock_suspend(void) +{ +} + +static inline void tegra_cpu_clock_resume(void) +{ +} #endif extern void tegra210_xusb_pll_hw_control_enable(void);
The new CPUIDLE driver uses the Tegra's CLK API and that driver won't strictly depend on CONFIG_PM_SLEEP, hence add the required stubs in order to allow compiling of the new driver with the CONFIG_PM_SLEEP=n. Signed-off-by: Dmitry Osipenko <digetx@gmail.com> --- include/linux/clk/tegra.h | 13 +++++++++++++ 1 file changed, 13 insertions(+)