Lines Matching defs:core
40 CoreEntry* core = threadData->Core();
41 bigtime_t activeTime = core->GetActiveTime();
54 // wake new core
58 CoreEntry* core = NULL;
60 core = package->GetIdleCore();
62 if (core == NULL) {
64 // no idle cores, use least occupied core
65 core = gCoreLoadHeap.PeekMinimum();
66 if (core == NULL)
67 core = gCoreHighLoadHeap.PeekMinimum();
70 ASSERT(core != NULL);
71 return core;
80 CoreEntry* core = threadData->Core();
81 ASSERT(core != NULL);
83 // Get the least loaded core.
91 // Check if the least loaded core is significantly less loaded than
93 int32 coreLoad = core->GetLoad();
95 if (other == core || otherLoad + kLoadDifference >= coreLoad)
96 return core;
98 // Check whether migrating the current thread would result in both core
103 int32 threadLoad = threadData->GetLoad() / core->CPUCount();
104 return difference >= threadLoad ? other : core;
145 CoreEntry* core = CoreEntry::GetCore(cpu->cpu_num);
146 if (other == core)
148 if (other->GetLoad() + kLoadDifference >= core->GetLoad())