Re: rtcwake doesn't reset wakealarm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 12, 2012 at 05:33:39PM +0000, Giacomo wrote:
> That was needlessly complex. The issue never was "don't call RTC_AIE_OFF if you
> didn't call RTC_AIE_ON before," it was "don't call RTC_AIE_OFF if it is not
> supported."

Good point.

> 
> So to disable an alarm use the same logic used to enable it: first try
> RTC_WKALM_SET with the "enabled" flag set to false, if it fails fall back to
> RTC_AIE_OFF.
> 
> This patch works for me as well and it seems to me it's cleaner than my previous
> one.

 Applied, thanks. (You forgot 'Signed-off-by:' but I guess you agree
 with this line in the commit message... )

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux