kernel_optimize_test/drivers/clocksource
Paul Mundt da64c2a8de clocksource: Fix up a registration/IRQ race in the sh drivers.
All of the SH clocksource drivers follow the scheme that the IRQ is setup
prior to registering the clockevent. The interrupt handler in the
clockevent cases looks to the event handler function pointer being filled
in by the registration code, permitting us to get in to situations where
asserted IRQs step in to the handler before registration has had a chance
to complete and hitting a NULL pointer deref.

In practice this is not an issue for most platforms, but some of them
with fairly special loaders (or that are chain-loading from another
kernel) may enter in to this situation. This fixes up the oops reported
by Rafael on hp6xx.

Reported-and-tested-by: Rafael Ignacio Zurita <rafaelignacio.zurita@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2010-02-25 16:37:46 +09:00
..
acpi_pm.c time: move PIT_TICK_RATE to linux/timex.h 2009-06-16 19:47:27 -07:00
cs5535-clockevt.c cs5535: add a generic clock event MFGPT driver 2009-12-15 08:53:28 -08:00
cyclone.c clocksource: pass clocksource to read() callback 2009-04-21 13:41:47 -07:00
Kconfig cs5535: add a generic clock event MFGPT driver 2009-12-15 08:53:28 -08:00
Makefile cs5535: add a generic clock event MFGPT driver 2009-12-15 08:53:28 -08:00
scx200_hrt.c clocksource: pass clocksource to read() callback 2009-04-21 13:41:47 -07:00
sh_cmt.c clocksource: Fix up a registration/IRQ race in the sh drivers. 2010-02-25 16:37:46 +09:00
sh_mtu2.c clocksource: Fix up a registration/IRQ race in the sh drivers. 2010-02-25 16:37:46 +09:00
sh_tmu.c clocksource: Fix up a registration/IRQ race in the sh drivers. 2010-02-25 16:37:46 +09:00
tcb_clksrc.c clocksource: pass clocksource to read() callback 2009-04-21 13:41:47 -07:00