mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
ARM: tegra: cpufreq: Remove direct calls to localtimer
The localtimer code will use a cpufreq notifier to update the prescalers. Change-Id: Ie0587d7eaec628ff11bf40636f78597574cd63ec Signed-off-by: Colin Cross <ccross@android.com>
This commit is contained in:
@@ -215,23 +215,6 @@ 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);
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
int ret = 0;
|
||||
@@ -257,9 +240,6 @@ static int tegra_update_cpu_speed(unsigned long rate)
|
||||
for_each_online_cpu(freqs.cpu)
|
||||
cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE);
|
||||
|
||||
if (freqs.new > freqs.old)
|
||||
tegra_cpufreq_rescale_twds(freqs.new * 1000);
|
||||
|
||||
#ifdef CONFIG_CPU_FREQ_DEBUG
|
||||
printk(KERN_DEBUG "cpufreq-tegra: transition: %u --> %u\n",
|
||||
freqs.old, freqs.new);
|
||||
@@ -272,9 +252,6 @@ static int tegra_update_cpu_speed(unsigned long rate)
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (freqs.new < freqs.old)
|
||||
tegra_cpufreq_rescale_twds(freqs.new * 1000);
|
||||
|
||||
for_each_online_cpu(freqs.cpu)
|
||||
cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user