mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
ARM: tegra: cpufreq: Fix compile issues with CONFIG_SMP=n
Change-Id: Id678df6299adfc23a4321ddaff10b4c64a4ed895 Signed-off-by: Colin Cross <ccross@android.com>
This commit is contained in:
@@ -73,6 +73,7 @@ unsigned int tegra_getspeed(unsigned int cpu)
|
||||
return rate;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_HAVE_ARM_TWD
|
||||
static void tegra_cpufreq_rescale_twd_other_cpu(void *data) {
|
||||
unsigned long new_rate = *(unsigned long *)data;
|
||||
twd_recalc_prescaler(new_rate);
|
||||
@@ -83,6 +84,11 @@ static void tegra_cpufreq_rescale_twds(unsigned long new_rate)
|
||||
twd_recalc_prescaler(new_rate);
|
||||
smp_call_function(tegra_cpufreq_rescale_twd_other_cpu, &new_rate, 1);
|
||||
}
|
||||
#else
|
||||
static inline void tegra_cpufreq_rescale_twds(unsigned long new_rate)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
static int tegra_update_cpu_speed(unsigned long rate)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user