diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2012-02-13 10:20:07 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-02-13 10:20:07 -0500 |
commit | 654b0c9627bc1b34cc21643afa8ac359c50db7d7 (patch) | |
tree | f25069e2987e6d61793585adf969f42f9380afcd /include/linux/pm_qos.h | |
parent | d031e1de2c5ba91e67ed83f6adf624543ab2b03d (diff) | |
parent | d020283dc694c9ec31b410f522252f7a8397e67d (diff) |
Merge commit 'pm-fixes-for-3.3-rc3' into pm-qos
New material in the pm-qos branch depends on recent power management
fixes.
Diffstat (limited to 'include/linux/pm_qos.h')
-rw-r--r-- | include/linux/pm_qos.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/linux/pm_qos.h b/include/linux/pm_qos.h index 5ac91d8e69de..67c521731f41 100644 --- a/include/linux/pm_qos.h +++ b/include/linux/pm_qos.h | |||
@@ -114,7 +114,19 @@ static inline void pm_qos_remove_request(struct pm_qos_request *req) | |||
114 | { return; } | 114 | { return; } |
115 | 115 | ||
116 | static inline int pm_qos_request(int pm_qos_class) | 116 | static inline int pm_qos_request(int pm_qos_class) |
117 | { return 0; } | 117 | { |
118 | switch (pm_qos_class) { | ||
119 | case PM_QOS_CPU_DMA_LATENCY: | ||
120 | return PM_QOS_CPU_DMA_LAT_DEFAULT_VALUE; | ||
121 | case PM_QOS_NETWORK_LATENCY: | ||
122 | return PM_QOS_NETWORK_LAT_DEFAULT_VALUE; | ||
123 | case PM_QOS_NETWORK_THROUGHPUT: | ||
124 | return PM_QOS_NETWORK_THROUGHPUT_DEFAULT_VALUE; | ||
125 | default: | ||
126 | return PM_QOS_DEFAULT_VALUE; | ||
127 | } | ||
128 | } | ||
129 | |||
118 | static inline int pm_qos_add_notifier(int pm_qos_class, | 130 | static inline int pm_qos_add_notifier(int pm_qos_class, |
119 | struct notifier_block *notifier) | 131 | struct notifier_block *notifier) |
120 | { return 0; } | 132 | { return 0; } |