aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorPali Rohár <[email protected]>2013-11-19 11:18:03 +0100
committerAnton Vorontsov <[email protected]>2013-12-01 14:27:24 -0800
commitd36240d26025bec95f3499e2401a56db98d9f01c (patch)
tree345c489dc983fc87cf4927235d9e2361e3e10448 /lib/cpu-notifier-error-inject.c
parent93353e8088057dd988362e6cae727af43734b494 (diff)
power_supply: Add power_supply notifier
This patch adds a notifier chain to the power_supply, this helps drivers in other subsystem to listen to changes in power supply subsystem. This would help to take some actions in those drivers on changing the power supply properties. One such scenario is to increase/decrease system performance based on the battery capacity/voltage. Another scenario is to adjust the h/w peak current detection voltage/current thresholds based on battery voltage/capacity. The notifier helps drivers to listen to changes in power_suppy susbystem without polling the power_supply properties Signed-off-by: Jenny TC <[email protected]> Signed-off-by: Pali Rohár <[email protected]> Acked-by: Jenny TC <[email protected]> Signed-off-by: Anton Vorontsov <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions