summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-07-25 02:46:37 -0400
committerIan Moffett <ian@osmora.org>2025-07-25 02:46:37 -0400
commit48587c836af7a008eff4964094e97aa1c94a34b0 (patch)
tree36ae14e50bd9420fbba0928f1f2cc8562aa86b7a /sys/include
parentcf1bb5e566ad0e346af810b399d871a74031feb2 (diff)
kernel: accnt: Report how many cores are halted
Introduce reporting of the number of halted cores for the scheduler accounting logic. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/sched.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/sys/sched.h b/sys/include/sys/sched.h
index abc2718..7a859b2 100644
--- a/sys/include/sys/sched.h
+++ b/sys/include/sys/sched.h
@@ -49,11 +49,13 @@ struct sched_cpu {
*
* @nproc: Number processes running
* @ncpu: Number of CPU cores
+ * @nhlt: Number of halted CPU cores
* @quantum_usec: Scheduler quantum (microseconds)
*/
struct sched_stat {
size_t nproc;
uint16_t ncpu;
+ uint16_t nhlt;
uint32_t quantum_usec;
struct sched_cpu cpus[CPU_MAX];
};