[PATCH v4 2/9] sched/isolation: document HK_TYPE housekeeping option
From: Daniel Wagner
Date: Tue Dec 17 2024 - 13:30:42 EST
The enum is a public API which can be used all over the kernel. This
warrants a bit of documentation.
Signed-off-by: Daniel Wagner <wagi@xxxxxxxxxx>
---
include/linux/sched/isolation.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/include/linux/sched/isolation.h b/include/linux/sched/isolation.h
index 2b461129d1fad0fd0ef1ad759fe44695dc635e8c..6649c3a48e0ea0a88c84bf5f2a74bff039fadaf2 100644
--- a/include/linux/sched/isolation.h
+++ b/include/linux/sched/isolation.h
@@ -6,6 +6,19 @@
#include <linux/init.h>
#include <linux/tick.h>
+/**
+ * enum hk_type - housekeeping cpu mask types
+ * @HK_TYPE_TIMER: housekeeping cpu mask for timers
+ * @HK_TYPE_RCU: housekeeping cpu mask for RCU
+ * @HK_TYPE_MISC: housekeeping cpu mask for miscalleanous resources
+ * @HK_TYPE_SCHED: housekeeping cpu mask for scheduling
+ * @HK_TYPE_TICK: housekeeping cpu maks for timer tick
+ * @HK_TYPE_DOMAIN: housekeeping cpu mask for general SMP balancing
+ * and scheduling algoririthms
+ * @HK_TYPE_WQ: housekeeping cpu mask for worksqueues
+ * @HK_TYPE_MANAGED_IRQ: housekeeping cpu mask for managed IRQs
+ * @HK_TYPE_KTHREAD: housekeeping cpu mask for kthreads
+ */
enum hk_type {
HK_TYPE_TIMER,
HK_TYPE_RCU,
--
2.47.1