]> git.openfabrics.org - ~emulex/for-vlad/compat.git/commitdiff
Updates the pm-qos array indexes to match upstream
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 12 Jan 2010 00:44:06 +0000 (16:44 -0800)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 12 Jan 2010 00:44:06 +0000 (16:44 -0800)
This style is used now upstream for the pm-qos object array
declaration.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
compat/compat-2.6.25.c

index e1a81aeb4729514421d2eb368e31a0af3b4f6c2e..7ce42326b770ba35a04e1806bfe49346d3fbb8dc 100644 (file)
@@ -107,11 +107,11 @@ static struct pm_qos_object system_bus_freq_pm_qos = {
 
 
 static struct pm_qos_object *pm_qos_array[] = {
-       &null_pm_qos,
-       &cpu_dma_pm_qos,
-       &network_lat_pm_qos,
-       &network_throughput_pm_qos,
-       &system_bus_freq_pm_qos,
+       [PM_QOS_RESERVED] = &null_pm_qos,
+       [PM_QOS_CPU_DMA_LATENCY] = &cpu_dma_pm_qos,
+       [PM_QOS_NETWORK_LATENCY] = &network_lat_pm_qos,
+       [PM_QOS_NETWORK_THROUGHPUT] = &network_throughput_pm_qos,
+       [PM_QOS_SYSTEM_BUS_FREQ] = &system_bus_freq_pm_qos,
 };
 
 static DEFINE_SPINLOCK(pm_qos_lock);