]> 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)
commit097886de2869c6b7a45c9a581b5027427a5861c1
tree12753a12dfda868b7c993d9c9b182abf881158d6
parentd4dda9a85fceaa15593ad5befe073a710a014435
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