diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-06-12 22:04:37 +0200 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2021-07-18 07:47:09 +0200 |
commit | 11d2206f40dd1680923ccae6e421a494c2af0992 (patch) | |
tree | 76513a64006184ee1bfc59ce9fa4aab1b0a2fc43 /solaris | |
parent | 41af31be7ffbd34518b27aad56a4f54af6a8adf3 (diff) |
Add ProcessList_isCPUonline
Diffstat (limited to 'solaris')
-rw-r--r-- | solaris/SolarisProcessList.c | 9 | ||||
-rw-r--r-- | solaris/SolarisProcessList.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/solaris/SolarisProcessList.c b/solaris/SolarisProcessList.c index 47d5182c..74f316b7 100644 --- a/solaris/SolarisProcessList.c +++ b/solaris/SolarisProcessList.c @@ -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; +} diff --git a/solaris/SolarisProcessList.h b/solaris/SolarisProcessList.h index e97d5cff..000d6ef1 100644 --- a/solaris/SolarisProcessList.h +++ b/solaris/SolarisProcessList.h @@ -59,4 +59,6 @@ void ProcessList_delete(ProcessList* pl); void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate); +bool ProcessList_isCPUonline(const ProcessList* super, unsigned int id); + #endif |