]> 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>
Thu, 18 Aug 2011 08:34:10 +0000 (10:34 +0200)
commit27ef1a076da143be985767fc7b4a1267afff8335
tree25a16896cd4653c4321f173f228753188ca4ac88
parent47d7c3f51146a046be426a57ec6ca2f428a6b134
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