hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/linux/sched/isolation.h
....@@ -13,12 +13,15 @@
1313 HK_FLAG_TICK = (1 << 4),
1414 HK_FLAG_DOMAIN = (1 << 5),
1515 HK_FLAG_WQ = (1 << 6),
16
+ HK_FLAG_MANAGED_IRQ = (1 << 7),
17
+ HK_FLAG_KTHREAD = (1 << 8),
1618 };
1719
1820 #ifdef CONFIG_CPU_ISOLATION
19
-DECLARE_STATIC_KEY_FALSE(housekeeping_overriden);
21
+DECLARE_STATIC_KEY_FALSE(housekeeping_overridden);
2022 extern int housekeeping_any_cpu(enum hk_flags flags);
2123 extern const struct cpumask *housekeeping_cpumask(enum hk_flags flags);
24
+extern bool housekeeping_enabled(enum hk_flags flags);
2225 extern void housekeeping_affine(struct task_struct *t, enum hk_flags flags);
2326 extern bool housekeeping_test_cpu(int cpu, enum hk_flags flags);
2427 extern void __init housekeeping_init(void);
....@@ -35,6 +38,11 @@
3538 return cpu_possible_mask;
3639 }
3740
41
+static inline bool housekeeping_enabled(enum hk_flags flags)
42
+{
43
+ return false;
44
+}
45
+
3846 static inline void housekeeping_affine(struct task_struct *t,
3947 enum hk_flags flags) { }
4048 static inline void housekeeping_init(void) { }
....@@ -43,7 +51,7 @@
4351 static inline bool housekeeping_cpu(int cpu, enum hk_flags flags)
4452 {
4553 #ifdef CONFIG_CPU_ISOLATION
46
- if (static_branch_unlikely(&housekeeping_overriden))
54
+ if (static_branch_unlikely(&housekeeping_overridden))
4755 return housekeeping_test_cpu(cpu, flags);
4856 #endif
4957 return true;