aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pm_qos_params.h
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2010-10-27 18:15:57 -0400
committerMichal Marek <mmarek@suse.cz>2010-10-27 18:15:57 -0400
commitb74b953b998bcc2db91b694446f3a2619ec32de6 (patch)
tree6ce24caabd730f6ae9287ed0676ec32e6ff31e9d /include/linux/pm_qos_params.h
parentabb438526201c6a79949ad45375c051b6681c253 (diff)
parentf6f94e2ab1b33f0082ac22d71f66385a60d8157f (diff)
Merge commit 'v2.6.36' into kbuild/misc
Update to be able to fix a recent change to scripts/basic/docproc.c (commit eda603f).
Diffstat (limited to 'include/linux/pm_qos_params.h')
-rw-r--r--include/linux/pm_qos_params.h23
1 files changed, 16 insertions, 7 deletions
diff --git a/include/linux/pm_qos_params.h b/include/linux/pm_qos_params.h
index d74f75ed1e47..77cbddb3784c 100644
--- a/include/linux/pm_qos_params.h
+++ b/include/linux/pm_qos_params.h
@@ -1,8 +1,10 @@
1#ifndef _LINUX_PM_QOS_PARAMS_H
2#define _LINUX_PM_QOS_PARAMS_H
1/* interface for the pm_qos_power infrastructure of the linux kernel. 3/* interface for the pm_qos_power infrastructure of the linux kernel.
2 * 4 *
3 * Mark Gross <mgross@linux.intel.com> 5 * Mark Gross <mgross@linux.intel.com>
4 */ 6 */
5#include <linux/list.h> 7#include <linux/plist.h>
6#include <linux/notifier.h> 8#include <linux/notifier.h>
7#include <linux/miscdevice.h> 9#include <linux/miscdevice.h>
8 10
@@ -14,12 +16,19 @@
14#define PM_QOS_NUM_CLASSES 4 16#define PM_QOS_NUM_CLASSES 4
15#define PM_QOS_DEFAULT_VALUE -1 17#define PM_QOS_DEFAULT_VALUE -1
16 18
17int pm_qos_add_requirement(int qos, char *name, s32 value); 19struct pm_qos_request_list {
18int pm_qos_update_requirement(int qos, char *name, s32 new_value); 20 struct plist_node list;
19void pm_qos_remove_requirement(int qos, char *name); 21 int pm_qos_class;
22};
20 23
21int pm_qos_requirement(int qos); 24void pm_qos_add_request(struct pm_qos_request_list *l, int pm_qos_class, s32 value);
25void pm_qos_update_request(struct pm_qos_request_list *pm_qos_req,
26 s32 new_value);
27void pm_qos_remove_request(struct pm_qos_request_list *pm_qos_req);
22 28
23int pm_qos_add_notifier(int qos, struct notifier_block *notifier); 29int pm_qos_request(int pm_qos_class);
24int pm_qos_remove_notifier(int qos, struct notifier_block *notifier); 30int pm_qos_add_notifier(int pm_qos_class, struct notifier_block *notifier);
31int pm_qos_remove_notifier(int pm_qos_class, struct notifier_block *notifier);
32int pm_qos_request_active(struct pm_qos_request_list *req);
25 33
34#endif