metag: log core and timer frequencies from arch code
Log core clock and Meta timer frequencies during init in architecture generic code, removing the need for equivalent log messages in SoC specific code. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: John Stultz <john.stultz@linaro.org> Cc: Thomas Gleixner <tglx@linutronix.de>
Этот коммит содержится в:
@@ -184,6 +184,8 @@ int __init metag_generic_timer_init(void)
|
||||
#ifdef CONFIG_METAG_META21
|
||||
hwtimer_freq = get_coreclock() / (metag_in32(EXPAND_TIMER_DIV) + 1);
|
||||
#endif
|
||||
pr_info("Timer frequency: %u Hz\n", hwtimer_freq);
|
||||
|
||||
clocksource_register_hz(&clocksource_metag, hwtimer_freq);
|
||||
|
||||
setup_irq(tbisig_map(TBID_SIGNUM_TRT), &metag_timer_irq);
|
||||
|
Ссылка в новой задаче
Block a user