diff options
Diffstat (limited to 'kernel/power/qos.c')
-rw-r--r-- | kernel/power/qos.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/kernel/power/qos.c b/kernel/power/qos.c index 33e3febaba53..9568a2fe7c11 100644 --- a/kernel/power/qos.c +++ b/kernel/power/qos.c | |||
@@ -78,57 +78,9 @@ static struct pm_qos_object cpu_dma_pm_qos = { | |||
78 | .name = "cpu_dma_latency", | 78 | .name = "cpu_dma_latency", |
79 | }; | 79 | }; |
80 | 80 | ||
81 | static BLOCKING_NOTIFIER_HEAD(network_lat_notifier); | ||
82 | static struct pm_qos_constraints network_lat_constraints = { | ||
83 | .list = PLIST_HEAD_INIT(network_lat_constraints.list), | ||
84 | .target_value = PM_QOS_NETWORK_LAT_DEFAULT_VALUE, | ||
85 | .default_value = PM_QOS_NETWORK_LAT_DEFAULT_VALUE, | ||
86 | .no_constraint_value = PM_QOS_NETWORK_LAT_DEFAULT_VALUE, | ||
87 | .type = PM_QOS_MIN, | ||
88 | .notifiers = &network_lat_notifier, | ||
89 | }; | ||
90 | static struct pm_qos_object network_lat_pm_qos = { | ||
91 | .constraints = &network_lat_constraints, | ||
92 | .name = "network_latency", | ||
93 | }; | ||
94 | |||
95 | |||
96 | static BLOCKING_NOTIFIER_HEAD(network_throughput_notifier); | ||
97 | static struct pm_qos_constraints network_tput_constraints = { | ||
98 | .list = PLIST_HEAD_INIT(network_tput_constraints.list), | ||
99 | .target_value = PM_QOS_NETWORK_THROUGHPUT_DEFAULT_VALUE, | ||
100 | .default_value = PM_QOS_NETWORK_THROUGHPUT_DEFAULT_VALUE, | ||
101 | .no_constraint_value = PM_QOS_NETWORK_THROUGHPUT_DEFAULT_VALUE, | ||
102 | .type = PM_QOS_MAX, | ||
103 | .notifiers = &network_throughput_notifier, | ||
104 | }; | ||
105 | static struct pm_qos_object network_throughput_pm_qos = { | ||
106 | .constraints = &network_tput_constraints, | ||
107 | .name = "network_throughput", | ||
108 | }; | ||
109 | |||
110 | |||
111 | static BLOCKING_NOTIFIER_HEAD(memory_bandwidth_notifier); | ||
112 | static struct pm_qos_constraints memory_bw_constraints = { | ||
113 | .list = PLIST_HEAD_INIT(memory_bw_constraints.list), | ||
114 | .target_value = PM_QOS_MEMORY_BANDWIDTH_DEFAULT_VALUE, | ||
115 | .default_value = PM_QOS_MEMORY_BANDWIDTH_DEFAULT_VALUE, | ||
116 | .no_constraint_value = PM_QOS_MEMORY_BANDWIDTH_DEFAULT_VALUE, | ||
117 | .type = PM_QOS_SUM, | ||
118 | .notifiers = &memory_bandwidth_notifier, | ||
119 | }; | ||
120 | static struct pm_qos_object memory_bandwidth_pm_qos = { | ||
121 | .constraints = &memory_bw_constraints, | ||
122 | .name = "memory_bandwidth", | ||
123 | }; | ||
124 | |||
125 | |||
126 | static struct pm_qos_object *pm_qos_array[] = { | 81 | static struct pm_qos_object *pm_qos_array[] = { |
127 | &null_pm_qos, | 82 | &null_pm_qos, |
128 | &cpu_dma_pm_qos, | 83 | &cpu_dma_pm_qos, |
129 | &network_lat_pm_qos, | ||
130 | &network_throughput_pm_qos, | ||
131 | &memory_bandwidth_pm_qos, | ||
132 | }; | 84 | }; |
133 | 85 | ||
134 | static ssize_t pm_qos_power_write(struct file *filp, const char __user *buf, | 86 | static ssize_t pm_qos_power_write(struct file *filp, const char __user *buf, |