From: James Hogan <james.hogan@imgtec.com>
To: <linux-kernel@vger.kernel.org>
Cc: James Hogan <james.hogan@imgtec.com>,
John Stultz <john.stultz@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>
Subject: [PATCH 02/10] metag: log core and timer frequencies from arch code
Date: Thu, 13 Jun 2013 13:19:33 +0100 [thread overview]
Message-ID: <1371125981-5184-3-git-send-email-james.hogan@imgtec.com> (raw)
In-Reply-To: <1371125981-5184-1-git-send-email-james.hogan@imgtec.com>
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 | 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 8bfd6a5..6339c9c 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 ade7513..6722f0e 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);
--
1.8.1.2
next prev parent reply other threads:[~2013-06-13 12:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-13 12:19 [PATCH 00/10] metag: various patches for v3.11 James Hogan
2013-06-13 12:19 ` [PATCH 01/10] metag: init common clk and use "core" clk James Hogan
2013-06-13 12:19 ` James Hogan [this message]
2013-06-13 12:19 ` [PATCH 03/10] metag/kernel/irq.c: Declare root_domain as static James Hogan
2013-06-13 12:19 ` [PATCH 04/10] metag/asm/irq.h: Declare init_IRQ James Hogan
2013-06-13 12:19 ` [PATCH 05/10] metag/mm/cache: Restrict scope for metag_lnkget_probe James Hogan
2013-06-13 12:19 ` [PATCH 06/10] metag/setup: Restrict scope for the capabilities variable James Hogan
2013-06-13 12:19 ` [PATCH 07/10] metag/processor.h: Add missing cpuinfo_op declaration James Hogan
2013-06-13 12:19 ` [PATCH 08/10] metag/traps: Mark die() as __noreturn to match the declaration James Hogan
2013-06-13 12:19 ` [PATCH 09/10] metag/traps: include setup.h for the per_cpu_trap_init declaration James Hogan
2013-06-13 12:19 ` [PATCH 10/10] metag/.gitignore: Extend the *.dtb pattern to match the dtb.S files James Hogan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1371125981-5184-3-git-send-email-james.hogan@imgtec.com \
--to=james.hogan@imgtec.com \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®