[PATCH] ARM: smp_twd: Reconfigure clockevents after cpufreq change
Linus Walleij
linus.ml.walleij at gmail.com
Tue Jun 14 01:50:45 EDT 2011
Colin, Per Fransson noted this:
> From: Colin Cross <ccross at android.com>
> +/*
> + * Updates clockevent frequency when the cpu frequency changes.
> + * Called on the cpu that is changing frequency with interrupts disabled.
> + */
> +static void twd_update_frequency(void *data)
> +{
> + twd_timer_rate = clk_get_rate(twd_clk);
> +
> + clockevents_update_freq(__get_cpu_var(twd_ce), twd_timer_rate);
> +}
Will only update the clockevent on the CPU where the cpufreq notifier
gets called will it not? It's not called on each CPU AFAICT.
So this function has to traverse all CPUs in twd_ce.
Thanks,
Linus Walleij
More information about the linux-arm-kernel
mailing list