From: Luis R. Rodriguez Date: Tue, 12 Jan 2010 00:44:06 +0000 (-0800) Subject: Updates the pm-qos array indexes to match upstream X-Git-Tag: next-20100113~14 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=a52301d8fcc3dae6dfe7f3065566a7e55f2c904d;p=~emulex%2Ffor-vlad%2Fcompat.git Updates the pm-qos array indexes to match upstream This style is used now upstream for the pm-qos object array declaration. Signed-off-by: Luis R. Rodriguez --- diff --git a/compat/compat-2.6.25.c b/compat/compat-2.6.25.c index e1a81ae..7ce4232 100644 --- a/compat/compat-2.6.25.c +++ b/compat/compat-2.6.25.c @@ -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);