mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
revise get_next_core to return always a valid core_id
This commit is contained in:
parent
2e361e129f
commit
d1c1a0aaef
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,7 @@ uint32_t get_next_core_id(void)
|
|||
if (readyqueues[core_id].idle)
|
||||
break;
|
||||
|
||||
if (BUILDTIN_EXPECT(!readyqueues[core_id].idle), 0) {
|
||||
if (BUILTIN_EXPECT(!readyqueues[core_id].idle, 0)) {
|
||||
kprintf("BUG: no core available!\n");
|
||||
return MAX_CORES;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue