Fix cores not waking on interrupt.

This commit is contained in:
James Benton
2015-10-07 17:28:40 +01:00
parent 85f382d888
commit 534c1fe87d
3 changed files with 4 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ Processor::start()
}
void
Processor::wakeAll()
Processor::wakeAllCores()
{
mCondition.notify_all();
}
@@ -322,6 +322,7 @@ Processor::timerEntryPoint()
if (core->nextInterrupt <= now) {
core->interrupt = true;
core->nextInterrupt = std::chrono::time_point<std::chrono::system_clock>::max();
wakeAllCores();
} else if (core->nextInterrupt < next) {
next = core->nextInterrupt;
timedWait = true;