cpuidle/coupled: Remove cpuidle_device::safe_state_index
cpuidle_device::safe_state_index need to be initialized before use, it should be the same as cpuidle_driver::safe_state_index. We tackled this issue by removing the safe_state_index from the cpuidle_device structure and use the one in the cpuidle_driver structure instead. Suggested-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Xunlei Pang <pang.xunlei@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:

committed by
Rafael J. Wysocki

parent
c75b89ebff
commit
ba6a860d41
@@ -473,7 +473,7 @@ int cpuidle_enter_state_coupled(struct cpuidle_device *dev,
|
||||
return entered_state;
|
||||
}
|
||||
entered_state = cpuidle_enter_state(dev, drv,
|
||||
dev->safe_state_index);
|
||||
drv->safe_state_index);
|
||||
local_irq_disable();
|
||||
}
|
||||
|
||||
@@ -521,7 +521,7 @@ retry:
|
||||
}
|
||||
|
||||
entered_state = cpuidle_enter_state(dev, drv,
|
||||
dev->safe_state_index);
|
||||
drv->safe_state_index);
|
||||
local_irq_disable();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user