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 commit22e580d07f
was merged on top ofeba682a5ae
(intel_idle: shrink states tables).] Fixes:22e580d07f
(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>
This commit is contained in:
Родитель
ba0dc81ed5
Коммит
88390996c9
|
@ -329,7 +329,7 @@ static struct cpuidle_state atom_cstates[] = {
|
||||||
{
|
{
|
||||||
.enter = NULL }
|
.enter = NULL }
|
||||||
};
|
};
|
||||||
static struct cpuidle_state avn_cstates[] __initdata = {
|
static struct cpuidle_state avn_cstates[] = {
|
||||||
{
|
{
|
||||||
.name = "C1-AVN",
|
.name = "C1-AVN",
|
||||||
.desc = "MWAIT 0x00",
|
.desc = "MWAIT 0x00",
|
||||||
|
@ -344,6 +344,8 @@ static struct cpuidle_state avn_cstates[] __initdata = {
|
||||||
.exit_latency = 15,
|
.exit_latency = 15,
|
||||||
.target_residency = 45,
|
.target_residency = 45,
|
||||||
.enter = &intel_idle },
|
.enter = &intel_idle },
|
||||||
|
{
|
||||||
|
.enter = NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Загрузка…
Ссылка в новой задаче