From cf07053214efccc80eed429dcd8f95583af75e7b Mon Sep 17 00:00:00 2001 From: James Hogan Date: Tue, 15 Jan 2013 15:27:45 +0000 Subject: [PATCH] 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 Cc: John Stultz Cc: Thomas Gleixner --- arch/metag/kernel/clock.c | 2 ++ drivers/clocksource/metag_generic.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/metag/kernel/clock.c b/arch/metag/kernel/clock.c index 8bfd6a5deac9..6339c9c6d0ab 100644 --- a/arch/metag/kernel/clock.c +++ b/arch/metag/kernel/clock.c @@ -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()); } /** 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);