Mark Gross | d82b351 | 2008-02-04 22:30:08 -0800 | [diff] [blame] | 1 | /* interface for the pm_qos_power infrastructure of the linux kernel. |
| 2 | * |
Richard Hughes | bf1db69 | 2008-08-05 13:01:35 -0700 | [diff] [blame] | 3 | * Mark Gross <mgross@linux.intel.com> |
Mark Gross | d82b351 | 2008-02-04 22:30:08 -0800 | [diff] [blame] | 4 | */ |
| 5 | #include <linux/list.h> |
| 6 | #include <linux/notifier.h> |
| 7 | #include <linux/miscdevice.h> |
| 8 | |
| 9 | #define PM_QOS_RESERVED 0 |
| 10 | #define PM_QOS_CPU_DMA_LATENCY 1 |
| 11 | #define PM_QOS_NETWORK_LATENCY 2 |
| 12 | #define PM_QOS_NETWORK_THROUGHPUT 3 |
| 13 | |
| 14 | #define PM_QOS_NUM_CLASSES 4 |
| 15 | #define PM_QOS_DEFAULT_VALUE -1 |
| 16 | |
Mark Gross | ed77134 | 2010-05-06 01:59:26 +0200 | [diff] [blame] | 17 | struct pm_qos_request_list; |
Mark Gross | d82b351 | 2008-02-04 22:30:08 -0800 | [diff] [blame] | 18 | |
Mark Gross | ed77134 | 2010-05-06 01:59:26 +0200 | [diff] [blame] | 19 | struct pm_qos_request_list *pm_qos_add_request(int pm_qos_class, s32 value); |
| 20 | void pm_qos_update_request(struct pm_qos_request_list *pm_qos_req, |
| 21 | s32 new_value); |
| 22 | void pm_qos_remove_request(struct pm_qos_request_list *pm_qos_req); |
Mark Gross | d82b351 | 2008-02-04 22:30:08 -0800 | [diff] [blame] | 23 | |
Mark Gross | ed77134 | 2010-05-06 01:59:26 +0200 | [diff] [blame] | 24 | int pm_qos_request(int pm_qos_class); |
| 25 | int pm_qos_add_notifier(int pm_qos_class, struct notifier_block *notifier); |
| 26 | int pm_qos_remove_notifier(int pm_qos_class, struct notifier_block *notifier); |
Mark Gross | d82b351 | 2008-02-04 22:30:08 -0800 | [diff] [blame] | 27 | |