| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH][MIPS] add mips_hpt_frequency check to mips_clockevent_init() |
| From: | Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> |
| Date: | Fri, 26 Oct 2007 22:27:05 +0900 |
| Cc: | yoichi_yuasa@tripeaks.co.jp, linux-mips <linux-mips@linux-mips.org> |
| Organization: | TriPeaks Corporation |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
Add mips_hpt_frequency check to mips_clockevent_init().
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
diff -pruN -X mips/Documentation/dontdiff mips-orig/arch/mips/kernel/cevt-r4k.c
mips/arch/mips/kernel/cevt-r4k.c
--- mips-orig/arch/mips/kernel/cevt-r4k.c 2007-10-21 12:44:50.113477500
+0900
+++ mips/arch/mips/kernel/cevt-r4k.c 2007-10-21 12:49:09.177668000 +0900
@@ -220,7 +220,7 @@ void __cpuinit mips_clockevent_init(void
struct clock_event_device *cd;
unsigned int irq = MIPS_CPU_IRQ_BASE + 7;
- if (!cpu_has_counter)
+ if (!cpu_has_counter || !mips_hpt_frequency)
return;
#ifdef CONFIG_MIPS_MT_SMTC
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: 2.6.24-rc1: au1xxx and clocksource, Ralf Baechle |
|---|---|
| Next by Date: | [PATCH][MIPS] remove unused mips_machtype, Yoichi Yuasa |
| Previous by Thread: | [PATCH] dz.c: Resource management, Maciej W. Rozycki |
| Next by Thread: | Re: [PATCH][MIPS] add mips_hpt_frequency check to mips_clockevent_init(), Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |