Leo Yan
7943bfaeb6
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 <daniel.lezcano@linaro.org >
Signed-off-by: Leo Yan <leo.yan@linaro.org >
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org >
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com >
2017-10-14 01:01:11 +02:00
..
2017-09-22 23:38:45 +02:00
2017-09-01 09:22:50 +02:00
2017-09-06 22:41:21 -07:00
2017-09-22 17:28:59 -10:00
2017-09-12 20:03:53 -07:00
2017-09-10 20:40:00 -07:00
2017-09-24 11:34:28 -07:00
2017-09-13 11:04:14 -07:00
2017-09-18 09:37:33 +02:00
2017-09-20 00:51:01 +02:00
2017-10-14 01:01:11 +02:00
2017-09-20 17:42:42 +08:00
2017-09-14 13:43:16 -07:00
2017-08-28 10:31:08 +09:00
2017-09-07 14:03:05 -07:00
2017-08-25 09:32:27 +09:00
2017-09-14 11:59:30 +02:00
2017-08-28 16:24:22 +02:00
2017-08-28 17:15:16 +02:00
2017-09-07 13:51:13 -07:00
2017-09-21 08:02:39 +10:00
2017-09-07 12:53:14 -07:00
2017-09-07 09:25:15 -07:00
2017-09-14 11:59:30 +02:00
2017-08-28 16:58:19 +02:00
2017-09-14 17:34:43 +02:00
2017-09-07 11:59:42 -07:00
2017-10-11 02:02:16 +02:00
2017-09-07 13:51:13 -07:00
2017-09-23 05:47:04 -10:00
2017-09-22 17:23:41 -10:00
2017-09-22 12:05:43 +02:00
2017-09-19 19:44:07 +01:00
2017-09-20 16:01:36 -07:00
2017-09-14 11:59:30 +02:00
2017-09-01 16:42:54 +10:00
2017-09-07 13:23:37 -07:00
2017-09-05 11:08:17 -07:00
2017-09-19 08:39:32 -07:00
2017-09-14 18:13:32 -07:00
2017-09-10 20:40:00 -07:00
2017-08-29 21:51:45 -04:00
2017-09-14 11:59:30 +02:00
2017-09-13 18:53:16 -07:00
2017-09-08 15:38:22 +02:00
2017-09-18 14:51:02 +02:00
2017-08-29 13:46:35 +02:00
2017-09-21 20:35:17 -07:00
2017-09-18 17:29:01 -07:00
2017-09-11 12:29:40 -04:00
2017-08-28 17:33:23 +02:00
2017-09-12 13:30:06 -07:00
2017-08-24 18:46:44 +02:00
2017-09-05 11:08:17 -07:00
2017-09-20 13:56:06 -05:00
2017-08-29 15:21:53 +02:00
2017-09-22 15:11:46 +01:00
2017-09-15 20:43:33 -07:00
2017-09-12 15:58:45 +02:00
2017-09-14 11:59:30 +02:00
2017-09-14 11:59:30 +02:00
2017-09-09 14:44:39 -07:00
2017-09-08 18:26:51 -07:00
2017-09-11 13:04:32 -07:00
2017-09-07 13:51:13 -07:00
2017-09-09 14:34:38 -07:00
2017-09-15 20:43:33 -07:00
2017-09-04 10:52:30 -07:00
2017-09-13 10:56:00 -07:00
2017-09-19 08:36:19 +02:00
2017-09-15 15:16:49 -04:00
2017-09-15 20:43:33 -07:00
2017-09-05 12:45:03 -07:00
2017-08-28 13:52:22 +02:00
2017-09-14 18:54:01 -07:00
2017-09-14 18:13:32 -07:00
2017-09-08 11:20:04 +08:00
2017-09-05 12:45:03 -07:00
2017-09-14 11:59:30 +02:00
2017-09-14 18:13:32 -07:00
2017-08-30 14:03:42 -06:00
2017-09-08 18:26:49 -07:00
2017-09-14 13:33:33 -07:00
2017-08-29 08:52:51 -05:00
2017-09-07 21:11:05 -07:00
2017-09-09 14:44:39 -07:00
2017-09-15 20:43:33 -07:00
2017-09-22 06:40:47 -10:00
2017-08-24 09:57:28 +02:00