diff options
author | Ian Moffett <ian@osmora.org> | 2024-05-24 13:23:34 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-05-24 13:23:34 -0400 |
commit | 3f9b766a3e19eb9dde9779adc1ea91474c3efbb5 (patch) | |
tree | 62eee860a81d91a5cd056370d1cfc1d872c1ce0a /sys/include | |
parent | 9a6d04290806afec59c988419cdac0fdbe4509ff (diff) |
kernel: cpu: Add cpu_count() for reading 'ncpu'
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/sys/cpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/include/sys/cpu.h b/sys/include/sys/cpu.h index 6697811..f22cba4 100644 --- a/sys/include/sys/cpu.h +++ b/sys/include/sys/cpu.h @@ -34,6 +34,7 @@ #define cpu_index(ci) ci->idx +size_t cpu_count(void); void cpu_attach(struct cpu_info *ci); struct cpu_info *cpu_get(size_t i); |