| To: | lkml <linux-kernel@vger.kernel.org> |
|---|---|
| Subject: | [PATCH 3/3] clocksource: Convert mips pnx8550 to use clocksource_register_hz |
| From: | John Stultz <john.stultz@linaro.org> |
| Date: | Mon, 23 Jan 2012 16:05:50 -0800 |
| Cc: | John Stultz <john.stultz@linaro.org>, Ralf Baechle <ralf@linux-mips.org>, Yong Zhang <yong.zhang0@gmail.com>, linux-mips@linux-mips.org |
| In-reply-to: | <1327363550-19952-1-git-send-email-john.stultz@linaro.org> |
| References: | <1327363550-19952-1-git-send-email-john.stultz@linaro.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
This patch converts the registration to use clocksource_register_hz()
but is clearly broken, as the pnx_clocksource doesn't seem to set a
proper mult/shift pair.
CC: Ralf Baechle <ralf@linux-mips.org>
CC: Yong Zhang <yong.zhang0@gmail.com>
CC: linux-mips@linux-mips.org
Signed-off-by: John Stultz <john.stultz@linaro.org>
---
arch/mips/pnx8550/common/time.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/arch/mips/pnx8550/common/time.c b/arch/mips/pnx8550/common/time.c
index 831d6b3..006ac88 100644
--- a/arch/mips/pnx8550/common/time.c
+++ b/arch/mips/pnx8550/common/time.c
@@ -104,7 +104,12 @@ __init void plat_time_init(void)
pnx8xxx_clockevent.cpumask = cpu_none_mask;
clockevents_register_device(&pnx8xxx_clockevent);
- clocksource_register(&pnx_clocksource);
+
+ /*
+ * XXX - Nothing seems to set pnx_clocksource mult/shift!
+ * So I don't know what freq to use here. Help! -johnstul
+ */
+ clocksource_register_hz(&pnx_clocksource, 0);
/* Timer 1 start */
configPR = read_c0_config7();
--
1.7.3.2.146.gca209
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 4/7] USB: EHCI: Add a generic platform device driver, Alan Stern |
|---|---|
| Next by Date: | [PATCH] [trivial] mips: Fix typo in bcm63xx/setup.c, Masanari Iida |
| Previous by Thread: | [PATCH] MIPS: ath79: fix AR933X WMAC reset code, Gabor Juhos |
| Next by Thread: | [PATCH] [trivial] mips: Fix typo in bcm63xx/setup.c, Masanari Iida |
| Indexes: | [Date] [Thread] [Top] [All Lists] |