scheduler: Fix unassigning threads from core being disabled
This commit is contained in:
@@ -677,7 +677,7 @@ scheduler_set_cpu_enabled(int32 cpuID, bool enabled)
|
|||||||
gIdlePackageList.Remove(package);
|
gIdlePackageList.Remove(package);
|
||||||
|
|
||||||
// get rid of threads
|
// get rid of threads
|
||||||
thread_map(unassign_thread, &core->fCoreID);
|
thread_map(unassign_thread, core);
|
||||||
|
|
||||||
core->fThreadCount = 0;
|
core->fThreadCount = 0;
|
||||||
while (core->fRunQueue.PeekMaximum() != NULL) {
|
while (core->fRunQueue.PeekMaximum() != NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user