Commit 88390996c95b879ba365888199b45ace3f5ca80b

Authored by Jiang Liu
Committed by Rafael J. Wysocki
1 parent ba0dc81ed5

intel_idle: close avn_cstates array with correct marker

Close avn_cstates array with correct marker to avoid overflow
in function intel_idle_cpu_init().

[rjw: The problem was introduced when commit 22e580d07f65 was merged
 on top of eba682a5aeb6 (intel_idle: shrink states tables).]

Fixes: 22e580d07f65 (intel_idle: Fixed C6 state on Avoton/Rangeley processors)
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff

drivers/idle/intel_idle.c
... ... @@ -329,7 +329,7 @@
329 329 {
330 330 .enter = NULL }
331 331 };
332   -static struct cpuidle_state avn_cstates[] __initdata = {
  332 +static struct cpuidle_state avn_cstates[] = {
333 333 {
334 334 .name = "C1-AVN",
335 335 .desc = "MWAIT 0x00",
... ... @@ -344,6 +344,8 @@
344 344 .exit_latency = 15,
345 345 .target_residency = 45,
346 346 .enter = &intel_idle },
  347 + {
  348 + .enter = NULL }
347 349 };
348 350  
349 351 /**