PM QoS: Add global notification mechanism for device constraints
authorJean Pihet <j-pihet@ti.com>
Thu, 25 Aug 2011 13:35:47 +0000 (15:35 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 25 Aug 2011 13:35:47 +0000 (15:35 +0200)
commitb66213cdb002b08b29603d488c451dfe25e2ca20
treeeebdfa34524d5cd40f30c722098e8c51457a15e0
parent91ff4cb803df6de9114351b9f2f0f39f397ee03e
PM QoS: Add global notification mechanism for device constraints

Add a global notification chain that gets called upon changes to the
aggregated constraint value for any device.
The notification callbacks are passing the full constraint request data
in order for the callees to have access to it. The current use is for the
platform low-level code to access the target device of the constraint.

Signed-off-by: Jean Pihet <j-pihet@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/qos.c
include/linux/pm_qos.h
kernel/power/qos.c