diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2012-04-29 20:54:47 (GMT) |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-05-01 19:28:43 (GMT) |
commit | 23e0fc5ae64925e0ff1b6221b83dff1b217545df (patch) | |
tree | d22f7b9891242715238014e00f97646256bea053 /drivers/base/power/domain.c | |
parent | 76e267d822f2913893ad210ba431607aa8e2af94 (diff) | |
download | linux-fsl-qoriq-23e0fc5ae64925e0ff1b6221b83dff1b217545df.tar.xz |
PM / QoS: Create device constraints objects on notifier registration
The current behavior of dev_pm_qos_add_notifier() makes device PM QoS
notifiers less than useful. Namely, it silently returns success when
called before any PM QoS constraints are added for the device, so the
caller will assume that the notifier has been registered, but when
someone actually adds some nontrivial constraints for the device
eventually, the previous callers of dev_pm_qos_add_notifier()
will not know about that and their notifier routines will not be
executed (contrary to their expectations).
To address this problem make dev_pm_qos_add_notifier() create the
constraints object for the device if it is not present when the
routine is called.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by : markgross <markgross@thegnar.org>
Diffstat (limited to 'drivers/base/power/domain.c')
0 files changed, 0 insertions, 0 deletions