idle: enable IRQ in default idle

we should let cpu handle IRQ during idle

Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
Jason Chen CJ 2018-08-12 20:56:30 +08:00 committed by lijinxia
parent e19d36fa6c
commit 8ef072165f

View File

@ -176,8 +176,11 @@ void default_idle(void)
schedule();
} else if (need_offline(pcpu_id) != 0) {
cpu_dead(pcpu_id);
} else
} else {
CPU_IRQ_ENABLE();
cpu_do_idle(pcpu_id);
CPU_IRQ_DISABLE();
}
}
}