1
#include <linux/version.h>
3
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25))
4
#include_next <linux/pm_qos_params.h>
6
/* interface for the pm_qos_power infrastructure of the linux kernel.
8
* Mark Gross <mgross@linux.intel.com>
10
#include <linux/list.h>
11
#include <linux/notifier.h>
12
#include <linux/miscdevice.h>
14
#define PM_QOS_RESERVED 0
15
#define PM_QOS_CPU_DMA_LATENCY 1
16
#define PM_QOS_NETWORK_LATENCY 2
17
#define PM_QOS_NETWORK_THROUGHPUT 3
18
#define PM_QOS_SYSTEM_BUS_FREQ 4
20
#define PM_QOS_NUM_CLASSES 5
21
#define PM_QOS_DEFAULT_VALUE -1
23
int pm_qos_add_requirement(int qos, char *name, s32 value);
24
int pm_qos_update_requirement(int qos, char *name, s32 new_value);
25
void pm_qos_remove_requirement(int qos, char *name);
27
int pm_qos_requirement(int qos);
29
int pm_qos_add_notifier(int qos, struct notifier_block *notifier);
30
int pm_qos_remove_notifier(int qos, struct notifier_block *notifier);
31
#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)) */