Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+4
+2
arch/metag/kernel/clock.c
··· 87 87 void __init init_metag_clocks(void) 88 88 { 89 89 init_metag_core_clock(); 90 + 91 + pr_info("Core clock frequency: %lu Hz\n", get_coreclock()); 90 92 } 91 93 92 94 /**
+2
drivers/clocksource/metag_generic.c
··· 184 184 #ifdef CONFIG_METAG_META21 185 185 hwtimer_freq = get_coreclock() / (metag_in32(EXPAND_TIMER_DIV) + 1); 186 186 #endif 187 + pr_info("Timer frequency: %u Hz\n", hwtimer_freq); 188 + 187 189 clocksource_register_hz(&clocksource_metag, hwtimer_freq); 188 190 189 191 setup_irq(tbisig_map(TBID_SIGNUM_TRT), &metag_timer_irq);