]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM QoS: Generalize and export constraints management code
authorJean Pihet <j-pihet@ti.com>
Thu, 18 Aug 2011 08:34:10 +0000 (10:34 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 19 Aug 2011 21:21:24 +0000 (23:21 +0200)
commitf11ee84064f97af2f3efa695782a0d073e846147
treecaf10317e0afc750d4eb48c8800b6a222dbf187c
parent2fd9a34eea5465ebe2430d20fec0d9ef59ccaf54
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>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
include/linux/pm_qos.h
kernel/power/qos.c