]> git.baikalelectronics.ru Git - kernel.git/commit
alarmtimers: Handle late rtc module loading
authorJohn Stultz <john.stultz@linaro.org>
Fri, 17 Jun 2011 01:27:09 +0000 (18:27 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 21 Jun 2011 22:38:33 +0000 (15:38 -0700)
commitcc06c74e1ebbe7823da11e31e6e43f72efa32ef7
tree0e718ce49992b6a7dfde619cd6ebf05afe06ae12
parent02f8fb81cd07dbe5796c8ce590dbc5ab40e0912f
alarmtimers: Handle late rtc module loading

The alarmtimers code currently picks a rtc device to use at
late init time. However, if your rtc driver is loaded as a module,
it may be registered after the alarmtimers late init code, leaving
the alarmtimers nonfunctional.

This patch moves the the rtcdevice selection to when we actually try
to use it, allowing us to make use of rtc modules that may have been
loaded at any point since bootup.

CC: Thomas Gleixner <tglx@linutronix.de>
CC: Meelis Roos <mroos@ut.ee>
Reported-by: Meelis Roos <mroos@ut.ee>
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/alarmtimer.c