mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
clocksource/drivers/tegra: Restore timer rate on Tegra210
The clocksource rate is initialized only for the first per-CPU clocksource
and then that rate shall be replicated for the rest of clocksource's
because they are initialized manually in the code.
Fixes: 3be2a85a0b61 ("clocksource/drivers/tegra: Support per-CPU timers on all Tegra's")
Acked-by: Jon Hunter <[email protected]>
Tested-by: Jon Hunter <[email protected]>
Signed-off-by: Dmitry Osipenko <[email protected]>
Acked-by: Thierry Reding <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
This commit is contained in:
parent
5a35441256
commit
59d43c9589
1 changed files with 2 additions and 0 deletions
|
|
@ -279,6 +279,8 @@ static int __init tegra_init_timer(struct device_node *np, bool tegra20,
|
|||
*/
|
||||
if (tegra20)
|
||||
cpu_to->of_clk.rate = 1000000;
|
||||
else
|
||||
cpu_to->of_clk.rate = timer_of_rate(to);
|
||||
|
||||
cpu_to = per_cpu_ptr(&tegra_to, cpu);
|
||||
cpu_to->of_base.base = timer_reg_base + base;
|
||||
|
|
|
|||
Loading…
Reference in a new issue