Skip to content

Commit 13de22c

Browse files
committed
Merge branch 'pm-cpuidle'
* pm-cpuidle: intel_idle: close avn_cstates array with correct marker Revert "intel_idle: mark states tables with __initdata tag"
2 parents 77410ba + 8839099 commit 13de22c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

drivers/idle/intel_idle.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static struct cpuidle_state *cpuidle_state_table;
123123
* which is also the index into the MWAIT hint array.
124124
* Thus C0 is a dummy.
125125
*/
126-
static struct cpuidle_state nehalem_cstates[] __initdata = {
126+
static struct cpuidle_state nehalem_cstates[] = {
127127
{
128128
.name = "C1-NHM",
129129
.desc = "MWAIT 0x00",
@@ -156,7 +156,7 @@ static struct cpuidle_state nehalem_cstates[] __initdata = {
156156
.enter = NULL }
157157
};
158158

159-
static struct cpuidle_state snb_cstates[] __initdata = {
159+
static struct cpuidle_state snb_cstates[] = {
160160
{
161161
.name = "C1-SNB",
162162
.desc = "MWAIT 0x00",
@@ -196,7 +196,7 @@ static struct cpuidle_state snb_cstates[] __initdata = {
196196
.enter = NULL }
197197
};
198198

199-
static struct cpuidle_state ivb_cstates[] __initdata = {
199+
static struct cpuidle_state ivb_cstates[] = {
200200
{
201201
.name = "C1-IVB",
202202
.desc = "MWAIT 0x00",
@@ -236,7 +236,7 @@ static struct cpuidle_state ivb_cstates[] __initdata = {
236236
.enter = NULL }
237237
};
238238

239-
static struct cpuidle_state hsw_cstates[] __initdata = {
239+
static struct cpuidle_state hsw_cstates[] = {
240240
{
241241
.name = "C1-HSW",
242242
.desc = "MWAIT 0x00",
@@ -297,7 +297,7 @@ static struct cpuidle_state hsw_cstates[] __initdata = {
297297
.enter = NULL }
298298
};
299299

300-
static struct cpuidle_state atom_cstates[] __initdata = {
300+
static struct cpuidle_state atom_cstates[] = {
301301
{
302302
.name = "C1E-ATM",
303303
.desc = "MWAIT 0x00",
@@ -329,7 +329,7 @@ static struct cpuidle_state atom_cstates[] __initdata = {
329329
{
330330
.enter = NULL }
331331
};
332-
static struct cpuidle_state avn_cstates[] __initdata = {
332+
static struct cpuidle_state avn_cstates[] = {
333333
{
334334
.name = "C1-AVN",
335335
.desc = "MWAIT 0x00",
@@ -344,6 +344,8 @@ static struct cpuidle_state avn_cstates[] __initdata = {
344344
.exit_latency = 15,
345345
.target_residency = 45,
346346
.enter = &intel_idle },
347+
{
348+
.enter = NULL }
347349
};
348350

349351
/**

0 commit comments

Comments
 (0)