arm/at91: Don't disable irqs in set_next_event and set_mode callbacks
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 21 Sep 2009 07:30:09 +0000 (09:30 +0200)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 22 Jan 2010 16:04:39 +0000 (17:04 +0100)
commit501d70383aa9ffc78b41aa7e74f6b0254c7c731c
treeb0a9421468f16aabff7ff8e92cf1655d17ef7eef
parent066000dd856709b6980123eb39b957fe26993f7b
arm/at91: Don't disable irqs in set_next_event and set_mode callbacks

on AT91 the timer irq is shared, so the handler might be entered without
irqs being disabled.  Though this should not happen as the timer irq is
registered early, there have been some reports on the mailing list.

To make debugging that problem easier next time it pops up a
WARN_ON_ONCE is added to the handler if irqs are not off.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
arch/arm/mach-at91/at91rm9200_time.c
arch/arm/mach-at91/at91sam926x_time.c