Re: [PATCH v2] alarmtimer: Fix unavailable wake-up source in sysfs

2017-07-05 Thread John Stultz
On Wed, Jul 5, 2017 at 5:08 AM, Geert Uytterhoeven wrote: > Currently the alarmtimer registers a wake-up source unconditionally, > regardless of the system having a (wake-up capable) RTC or not. > Hence the alarmtimer will always show up in > /sys/kernel/debug/wakeup_sources, even if it is not ava

[PATCH v2] alarmtimer: Fix unavailable wake-up source in sysfs

2017-07-05 Thread Geert Uytterhoeven
Currently the alarmtimer registers a wake-up source unconditionally, regardless of the system having a (wake-up capable) RTC or not. Hence the alarmtimer will always show up in /sys/kernel/debug/wakeup_sources, even if it is not available, and thus cannot be a wake-up source. To fix this, postpone