[<prev] [next>] [day] [month] [year] [list]
Message-ID: <EF2E73589CA71846A15D0B2CDF79505D068D0F0615@wm021.weinmann.com>
Date: Wed, 3 Nov 2010 17:17:59 +0100
From: "Voss, Nikolaus" <N.Voss@...nmann.de>
To: "'Linux Kernel'" <linux-kernel@...r.kernel.org>
CC: "'David Brownell'" <dbrownell@...rs.sourceforge.net>,
"'Haavard Skinnemoen'" <hskinnemoen@...el.com>
Subject: [PATCH] atmel_tc: tcb_clksrc: fix init sequence
setup_irq() was called before clockevents_register_device() which
is needed by the irq handler. Bug was reproducible by restarting
the kernel using kexec (reliable crash).
Signed-off-by: Nikolaus Voss <n.voss@...nmann.de>
---
drivers/clocksource/tcb_clksrc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clocksource/tcb_clksrc.c b/drivers/clocksource/tcb_clksrc.c
index 01b886e..79c47e8 100644
--- a/drivers/clocksource/tcb_clksrc.c
+++ b/drivers/clocksource/tcb_clksrc.c
@@ -196,9 +196,9 @@ static void __init setup_clkevents(struct atmel_tc *tc, int clk32k_divisor_idx)
clkevt.clkevt.min_delta_ns = clockevent_delta2ns(1, &clkevt.clkevt) + 1;
clkevt.clkevt.cpumask = cpumask_of(0);
- setup_irq(irq, &tc_irqaction);
-
clockevents_register_device(&clkevt.clkevt);
+
+ setup_irq(irq, &tc_irqaction);
}
#else /* !CONFIG_GENERIC_CLOCKEVENTS */
--
1.5.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists