mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 10:11:36 +00:00
cb8f51bdad
Currently, wakeup sysfs attributes are created for all devices, regardless of whether or not they are wakeup-capable. This is excessive and complicates wakeup device identification from user space (i.e. to identify wakeup-capable devices user space has to read /sys/devices/.../power/wakeup for all devices and see if they are not empty). Fix this issue by avoiding to create wakeup sysfs files for devices that cannot wake up the system from sleep states (i.e. whose power.can_wakeup flags are unset during registration) and modify device_set_wakeup_capable() so that it adds (or removes) the relevant sysfs attributes if a device's wakeup capability status is changed. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> |
||
---|---|---|
.. | ||
generic_ops.c | ||
main.c | ||
Makefile | ||
opp.c | ||
power.h | ||
runtime.c | ||
sysfs.c | ||
trace.c | ||
wakeup.c |