diff options
author | James Hogan <james.hogan@imgtec.com> | 2013-01-15 16:27:45 +0100 |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2013-06-13 13:55:27 +0200 |
commit | cf07053214efccc80eed429dcd8f95583af75e7b (patch) | |
tree | 9215633f505fa40f1b3342be252a2d4a75db80af /drivers/clocksource | |
parent | metag: init common clk and use "core" clk (diff) | |
download | linux-cf07053214efccc80eed429dcd8f95583af75e7b.tar.xz linux-cf07053214efccc80eed429dcd8f95583af75e7b.zip |
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>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r-- | drivers/clocksource/metag_generic.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clocksource/metag_generic.c b/drivers/clocksource/metag_generic.c index ade7513a11d1..6722f0e2fe40 100644 --- a/drivers/clocksource/metag_generic.c +++ b/drivers/clocksource/metag_generic.c @@ -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); |