]> git.baikalelectronics.ru Git - kernel.git/commit
PM QoS: Generalize and export constraints management code
authorJean Pihet <j-pihet@ti.com>
Thu, 25 Aug 2011 13:35:34 +0000 (15:35 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 25 Aug 2011 13:35:34 +0000 (15:35 +0200)
commite3f48ff25916ae7e7cea8447f29b0e7e184b7aa7
tree014f3ce775504218121194f54e2ba5b88c08c777
parent2b7dc28be96d80729bc3785dd143e5f4525af2f4
PM QoS: Generalize and export constraints management code

In preparation for the per-device constratins support:
 - rename update_target to pm_qos_update_target
 - generalize and export pm_qos_update_target for usage by the upcoming
   per-device latency constraints framework:
   * operate on struct pm_qos_constraints for constraints management,
   * introduce an 'action' parameter for constraints add/update/remove,
   * the return value indicates if the aggregated constraint value has
     changed,
 - update the internal code to operate on struct pm_qos_constraints
 - add a NULL pointer check in the API functions

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>
include/linux/pm_qos.h
kernel/power/qos.c