mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-09 12:08:30 +00:00
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:
parent
e19d36fa6c
commit
8ef072165f
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user