Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287260
b: refs/heads/master
c: d020283
h: refs/heads/master
v: v3
  • Loading branch information
Venkatesh Pallipadi authored and Rafael J. Wysocki committed Feb 4, 2012
1 parent 592b730 commit e2a89ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 379e0be812ab8a2a351e784b0c987788f5123090
refs/heads/master: d020283dc694c9ec31b410f522252f7a8397e67d
14 changes: 13 additions & 1 deletion trunk/include/linux/pm_qos.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,19 @@ static inline void pm_qos_remove_request(struct pm_qos_request *req)
{ return; }

static inline int pm_qos_request(int pm_qos_class)
{ return 0; }
{
switch (pm_qos_class) {
case PM_QOS_CPU_DMA_LATENCY:
return PM_QOS_CPU_DMA_LAT_DEFAULT_VALUE;
case PM_QOS_NETWORK_LATENCY:
return PM_QOS_NETWORK_LAT_DEFAULT_VALUE;
case PM_QOS_NETWORK_THROUGHPUT:
return PM_QOS_NETWORK_THROUGHPUT_DEFAULT_VALUE;
default:
return PM_QOS_DEFAULT_VALUE;
}
}

static inline int pm_qos_add_notifier(int pm_qos_class,
struct notifier_block *notifier)
{ return 0; }
Expand Down

0 comments on commit e2a89ed

Please sign in to comment.