-
由 John Stultz 提交于
In cases where RTC hardware does not support alarms, the virtualized RTC interfaces did not have a way to propagate the error up to userland. This patch extends rtc_timer_enqueue so it catches errors from the hardware and returns them upwards to the virtualized interfaces. To simplify error handling, it also internalizes the management of the timer->enabled bit into rtc_timer_enqueue and rtc_timer_remove. Also makes rtc_timer_enqueue and rtc_timer_remove static. Reported-by: NDavid Daney <ddaney@caviumnetworks.com> Reported-by: NAndreas Schwab <schwab@linux-m68k.org> Reported-by: NGeert Uytterhoeven <geert@linux-m68k.org> Diagnosed-by: NDavid Daney <ddaney@caviumnetworks.com> Tested-by: NDavid Daney <ddaney@caviumnetworks.com> Signed-off-by: NJohn Stultz <john.stultz@linaro.org> LKML-Reference: <1295565973-14358-1-git-send-email-john.stultz@linaro.org> Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
aa0be0f4