]> git.ipfire.org Git - thirdparty/util-linux.git/commit
rtcwake: only invoke RTC_AIE_ON/OFF ioctls in pairs
authorPaul Fox <pgf@laptop.org>
Fri, 30 Mar 2012 12:16:50 +0000 (08:16 -0400)
committerKarel Zak <kzak@redhat.com>
Mon, 2 Apr 2012 11:14:00 +0000 (13:14 +0200)
commit1707576155daf644c5df3c1776b52fd297ff9318
tree0dcd9bf5f54d32d14efc243d3435e9c949b2bb0c
parenta3ef250e90a76fca27045466b710e75bd9a6b56f
rtcwake: only invoke RTC_AIE_ON/OFF ioctls in pairs

many rtc drivers don't implement the RTC_AIE_ON/OFF ioctls at all --
so if we never tried to enable the alarm interrupt, don't try to
disable it later.

Signed-off-by: Paul Fox <pgf@laptop.org>
sys-utils/rtcwake.c