Skip to content

Commit

Permalink
clk: tegra: Add stubs needed for compile testing
Browse files Browse the repository at this point in the history
These stubs are needed to allow the tegra-cpuidle driver to be
compile-tested.

Signed-off-by: Thierry Reding <[email protected]>
  • Loading branch information
thierryreding committed Oct 5, 2021
1 parent 6880fa6 commit 4ad81f6
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion include/linux/clk/tegra.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ struct tegra_cpu_car_ops {
#endif
};

#ifdef CONFIG_ARCH_TEGRA
extern struct tegra_cpu_car_ops *tegra_cpu_car_ops;

static inline void tegra_wait_cpu_in_reset(u32 cpu)
Expand Down Expand Up @@ -83,8 +84,29 @@ static inline void tegra_disable_cpu_clock(u32 cpu)

tegra_cpu_car_ops->disable_clock(cpu);
}
#else
static inline void tegra_wait_cpu_in_reset(u32 cpu)
{
}

#ifdef CONFIG_PM_SLEEP
static inline void tegra_put_cpu_in_reset(u32 cpu)
{
}

static inline void tegra_cpu_out_of_reset(u32 cpu)
{
}

static inline void tegra_enable_cpu_clock(u32 cpu)
{
}

static inline void tegra_disable_cpu_clock(u32 cpu)
{
}
#endif

#if defined(CONFIG_ARCH_TEGRA) && defined(CONFIG_PM_SLEEP)
static inline bool tegra_cpu_rail_off_ready(void)
{
if (WARN_ON(!tegra_cpu_car_ops->rail_off_ready))
Expand Down

0 comments on commit 4ad81f6

Please sign in to comment.