intel_idle: mark states tables with __initdata tag
PATCH 2/3 intel_idle: mark states tables with __initdata tag
States tables are only accessed during driver initialization so they can be marked with __initdata tag.
Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
Signed-off-by Kyungmin Park <[email protected]>
Cc Len Brown <[email protected]>
--- drivers/idle/intel_idle.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/idle/intel_idle.c +5 -5
@@ -123,7 +123,7 @@ static struct cpuidle_state *cpuidle_state_table;* which is also the index into the MWAIT hint array. * Thus C0 is a dummy. */ -static struct cpuidle_state nehalem_cstates[] = { +static struct cpuidle_state nehalem_cstates[]__initdata = { { .name ="C1-NHM" , .desc ="MWAIT 0x00" ,
@@ -156,7 +156,7 @@ static struct cpuidle_state nehalem_cstates[] = { .enter = NULL } }; -static struct cpuidle_state snb_cstates[] = { +static struct cpuidle_state snb_cstates[]__initdata = { { .name ="C1-SNB" , .desc ="MWAIT 0x00" ,
@@ -196,7 +196,7 @@ static struct cpuidle_state snb_cstates[] = { .enter = NULL } }; -static struct cpuidle_state ivb_cstates[] = { +static struct cpuidle_state ivb_cstates[]__initdata = { { .name ="C1-IVB" , .desc ="MWAIT 0x00" ,
@@ -236,7 +236,7 @@ static struct cpuidle_state ivb_cstates[] = { .enter = NULL } }; -static struct cpuidle_state hsw_cstates[] = { +static struct cpuidle_state hsw_cstates[]__initdata = { { .name ="C1-HSW" , .desc ="MWAIT 0x00" ,
@@ -297,7 +297,7 @@ static struct cpuidle_state hsw_cstates[] = { .enter = NULL } }; -static struct cpuidle_state atom_cstates[] = { +static struct cpuidle_state atom_cstates[]__initdata = { { .name ="C1E-ATM" , .desc ="MWAIT 0x00" ,
Signature · 1 line
1.8.2.3
:0
:0
Quoted 7 lines · Bartlomiej Zolnierkiewicz
States tables are only accessed during driver initialization so they can be marked with
__initdatatag.Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>Signed-off-by Kyungmin Park <[email protected]>Cc Len Brown <[email protected]>---
Reviewed-by Daniel Lezcano <[email protected]>
Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog