scheduler: Do not update load of disabled cores
This commit is contained in:
@@ -420,6 +420,9 @@ CoreEntry::UpdateLoad(int32 delta)
|
|||||||
|
|
||||||
ASSERT(gTrackCoreLoad);
|
ASSERT(gTrackCoreLoad);
|
||||||
|
|
||||||
|
if (fCPUCount <= 0)
|
||||||
|
return;
|
||||||
|
|
||||||
atomic_add(&fLoad, delta);
|
atomic_add(&fLoad, delta);
|
||||||
|
|
||||||
bigtime_t now = system_time();
|
bigtime_t now = system_time();
|
||||||
|
|||||||
Reference in New Issue
Block a user