Add ProcessList_isCPUonline

This commit is contained in:
Christian Göttsche
2021-06-12 22:04:37 +02:00
committed by Benny Baumann
parent 41af31be7f
commit 11d2206f40
18 changed files with 95 additions and 3 deletions

View File

@ -495,3 +495,12 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
super->kernelThreads = 1;
proc_walk(&SolarisProcessList_walkproc, super, PR_WALK_LWP);
}
bool ProcessList_isCPUonline(const ProcessList* super, unsigned int id) {
assert(id < super->existingCPUs);
// TODO: support offline CPUs and hot swapping
(void) super; (void) id;
return true;
}