timers: Fix alarmtimer build issues when CONFIG_RTC_CLASS=n
authorJohn Stultz <john.stultz@linaro.org>
Fri, 29 Apr 2011 22:03:10 +0000 (15:03 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 2 May 2011 19:36:57 +0000 (21:36 +0200)
commit472647dcd7e351dbeda750e5ab3e8f7b06d1199a
tree536842fa33d135d4b18e6d1dd5cf573a5b53719c
parent7068b7a16270f1e85a8893d74b0f3c58d7826883
timers: Fix alarmtimer build issues when CONFIG_RTC_CLASS=n

Ingo pointed out that the alarmtimers won't build if CONFIG_RTC_CLASS=n.
This patch adds proper ifdefs to the alarmtimer code to disable the rtc
usage if it is not built in.

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/alarmtimer.c