metag: log core and timer frequencies from arch code
authorJames Hogan <james.hogan@imgtec.com>
Tue, 15 Jan 2013 15:27:45 +0000 (15:27 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Thu, 13 Jun 2013 11:55:27 +0000 (12:55 +0100)
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>
arch/metag/kernel/clock.c
drivers/clocksource/metag_generic.c

index 8bfd6a5deac918783b7482c9c0ce0aef4068e368..6339c9c6d0abebbd9ef355740bad27cd233512ee 100644 (file)
@@ -87,6 +87,8 @@ static void __init init_metag_core_clock(void)
 void __init init_metag_clocks(void)
 {
        init_metag_core_clock();
+
+       pr_info("Core clock frequency: %lu Hz\n", get_coreclock());
 }
 
 /**
index ade7513a11d1d4ac133b20ff3092e73b4e966ea6..6722f0e2fe40bc9f4767928905df04c737b549fe 100644 (file)
@@ -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);