~ubuntu-branches/ubuntu/natty/linux-backports-modules-2.6.38/natty-proposed

« back to all changes in this revision

Viewing changes to updates/compat-wireless-2.6.36/include/linux/pm_qos_params.h

  • Committer: Bazaar Package Importer
  • Author(s): Tim Gardner, Tim Gardner
  • Date: 2011-06-08 10:44:09 UTC
  • Revision ID: james.westby@ubuntu.com-20110608104409-fnl8carkdo15bwsz
Tags: 2.6.38-10.6
[ Tim Gardner ]

Shorten compat-wireless package name to cw to accomodate
CDROM file name length restrictions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <linux/version.h>
2
 
 
3
 
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25))
4
 
#include_next <linux/pm_qos_params.h>
5
 
#else
6
 
/* interface for the pm_qos_power infrastructure of the linux kernel.
7
 
 *
8
 
 * Mark Gross <mgross@linux.intel.com>
9
 
 */
10
 
#include <linux/list.h>
11
 
#include <linux/notifier.h>
12
 
#include <linux/miscdevice.h>
13
 
 
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
19
 
 
20
 
#define PM_QOS_NUM_CLASSES 5
21
 
#define PM_QOS_DEFAULT_VALUE -1
22
 
 
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);
26
 
 
27
 
int pm_qos_requirement(int qos);
28
 
 
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)) */
32