* [PATCH 02/05] sh: tmu disable support
@ 2009-01-22 9:55 Magnus Damm
0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2009-01-22 9:55 UTC (permalink / raw)
To: linux-sh
From: Magnus Damm <damm@igel.co.jp>
Add TMU disable support so we can use other clockevents.
Also, setup the clockevent rating.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
---
arch/sh/kernel/timers/timer-tmu.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
--- 0015/arch/sh/kernel/timers/timer-tmu.c
+++ work/arch/sh/kernel/timers/timer-tmu.c 2009-01-22 17:58:50.000000000 +0900
@@ -146,7 +146,14 @@ static irqreturn_t tmu_timer_interrupt(i
_tmu_clear_status(TMU0);
_tmu_set_irq(TMU0,tmu0_clockevent.mode != CLOCK_EVT_MODE_ONESHOT);
- evt->event_handler(evt);
+ switch (tmu0_clockevent.mode) {
+ case CLOCK_EVT_MODE_ONESHOT:
+ case CLOCK_EVT_MODE_PERIODIC:
+ evt->event_handler(evt);
+ break;
+ default:
+ break;
+ }
return IRQ_HANDLED;
}
@@ -271,6 +278,7 @@ static int tmu_timer_init(void)
clockevent_delta2ns(1, &tmu0_clockevent);
tmu0_clockevent.cpumask = cpumask_of(0);
+ tmu0_clockevent.rating = 100;
clockevents_register_device(&tmu0_clockevent);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-22 9:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-22 9:55 [PATCH 02/05] sh: tmu disable support Magnus Damm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox