scheduler: Fix unassigning threads from core being disabled

This commit is contained in:
Pawel Dziepak
2013-12-18 00:03:56 +01:00
parent 1b06228f13
commit 5a7289d720
+1 -1
View File
@@ -677,7 +677,7 @@ scheduler_set_cpu_enabled(int32 cpuID, bool enabled)
gIdlePackageList.Remove(package);
// get rid of threads
thread_map(unassign_thread, &core->fCoreID);
thread_map(unassign_thread, core);
core->fThreadCount = 0;
while (core->fRunQueue.PeekMaximum() != NULL) {