This patch removes the unnecessary enumeration pass_cpu_state.
Instead, this patch uses the integer (0 or 1) for cpu_up/down.
Change-Id: I12bbc54edff7047c06a18e5b04d03b8b807f15da
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
pass_set_online_min_num(res, min_num);
for (i = 0 ; i < hotplug->num_cpus; i++) {
- if (i < min_num) {
- pass_set_online_state(res, hotplug->sequence[i],
- PASS_CPU_UP);
- } else {
- pass_set_online_state(res, hotplug->sequence[i],
- PASS_CPU_DOWN);
- }
+ if (i < min_num)
+ pass_set_online_state(res, hotplug->sequence[i], 1);
+ else
+ pass_set_online_state(res, hotplug->sequence[i], 0);
}
/*
};
/*
- * PASS cpu state
- */
-enum pass_cpu_state {
- PASS_CPU_DOWN = 0,
- PASS_CPU_UP,
-};
-
-/*
* struct pass_governor
*/
struct pass_governor {