From 8ef072165fa64ced0c233dcbcc5059c0bb293e31 Mon Sep 17 00:00:00 2001 From: Jason Chen CJ Date: Sun, 12 Aug 2018 20:56:30 +0800 Subject: [PATCH] idle: enable IRQ in default idle we should let cpu handle IRQ during idle Signed-off-by: Jason Chen CJ --- hypervisor/common/schedule.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hypervisor/common/schedule.c b/hypervisor/common/schedule.c index 1a516524e..c7d949476 100644 --- a/hypervisor/common/schedule.c +++ b/hypervisor/common/schedule.c @@ -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(); + } } }