]> git.baikalelectronics.ru Git - kernel.git/commit
power_supply: allow power supply devices registered w/o wakeup source
authorZhang Rui <rui.zhang@intel.com>
Wed, 28 May 2014 07:23:37 +0000 (15:23 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 30 May 2014 11:45:25 +0000 (13:45 +0200)
commit54597345017e87c1e1f24dade1b7026662e55b8e
tree12753a12dfda868b7c993d9c9b182abf881158d6
parent878ac79b1ade7d9277486f4cea75bcf225204124
power_supply: allow power supply devices registered w/o wakeup source

Currently, all the power supply devices are registered with wakeup source,
this results in that every power_supply_changed() invocation brings
the system out of suspend-to-freeze state.

This is overkill as some device drivers, e.g. ACPI battery driver,
have the ability to check the device status and wake up the system
from sleeping only when necessary.

Thus introduce a new API which allows device to be registered
w/o wakeup source.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/power/power_supply_core.c
include/linux/power_supply.h