Kernel: Reschedule if idle after IPI
This allows starting thread execution right after thread is received from load balancing
This commit is contained in:
parent
a51b589bc9
commit
1cc0fb9c01
|
@ -338,6 +338,7 @@ namespace Kernel
|
||||||
ASSERT(InterruptController::get().is_in_service(IRQ_IPI - IRQ_VECTOR_BASE));
|
ASSERT(InterruptController::get().is_in_service(IRQ_IPI - IRQ_VECTOR_BASE));
|
||||||
InterruptController::get().eoi(IRQ_IPI - IRQ_VECTOR_BASE);
|
InterruptController::get().eoi(IRQ_IPI - IRQ_VECTOR_BASE);
|
||||||
Processor::handle_ipi();
|
Processor::handle_ipi();
|
||||||
|
Processor::scheduler().reschedule_if_idle();
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" void cpp_timer_handler()
|
extern "C" void cpp_timer_handler()
|
||||||
|
|
Loading…
Reference in New Issue