diff options
author | Leo Yan <[email protected]> | 2017-10-10 13:47:56 +0800 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2017-10-14 01:01:11 +0200 |
commit | 7943bfaeb6bbbf595df4bd4087f5b890761c4898 (patch) | |
tree | 33bc6cbc6f66778cf4445363520813346983827e /include/linux/fpga/fpga-mgr.h | |
parent | 0f87855d969a87f02048ff5ced7503465d5ab2f1 (diff) |
ARM: cpuidle: Refactor rollback operations if init fails
If init fails, we need execute two levels rollback operations: the first
level is for the failed CPU rollback operations, the second level is to
iterate all succeeded CPUs to cancel their registration; currently the
code uses one function to finish these two levels rollback operations.
This commit is to refactor rollback operations, so it adds a new
function arm_idle_init_cpu() to encapsulate one specified CPU driver
registration and rollback the first level operations; and use function
arm_idle_init() to iterate all CPUs and finish the second level's
rollback operations.
Suggested-by: Daniel Lezcano <[email protected]>
Signed-off-by: Leo Yan <[email protected]>
Acked-by: Daniel Lezcano <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions