summaryrefslogtreecommitdiffstats
path: root/darwin
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-06-12 22:04:37 +0200
committerBenny Baumann <BenBE@geshi.org>2021-07-18 07:47:09 +0200
commit11d2206f40dd1680923ccae6e421a494c2af0992 (patch)
tree76513a64006184ee1bfc59ce9fa4aab1b0a2fc43 /darwin
parent41af31be7ffbd34518b27aad56a4f54af6a8adf3 (diff)
Add ProcessList_isCPUonline
Diffstat (limited to 'darwin')
-rw-r--r--darwin/DarwinProcessList.c9
-rw-r--r--darwin/DarwinProcessList.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/darwin/DarwinProcessList.c b/darwin/DarwinProcessList.c
index e58c3496..8d14efe1 100644
--- a/darwin/DarwinProcessList.c
+++ b/darwin/DarwinProcessList.c
@@ -236,3 +236,12 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
free(ps);
}
+
+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/darwin/DarwinProcessList.h b/darwin/DarwinProcessList.h
index bd39ab0e..24259d3e 100644
--- a/darwin/DarwinProcessList.h
+++ b/darwin/DarwinProcessList.h
@@ -34,4 +34,6 @@ void ProcessList_delete(ProcessList* this);
void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate);
+bool ProcessList_isCPUonline(const ProcessList* super, unsigned int id);
+
#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy