diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2025-11-19 18:26:47 +0100 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2025-11-20 12:14:52 +0100 |
| commit | 8cea569ca785060b8c5cc7800713ddc3b1548a94 (patch) | |
| tree | ea8ae59120864ce14db53e93e87473230fc5eeb0 /init | |
| parent | 77d7dc8bef482e987036bc204136bbda552d95cd (diff) | |
sched/mmcid: Use proper data structures
Having a lot of CID functionality specific members in struct task_struct
and struct mm_struct is not really making the code easier to read.
Encapsulate the CID specific parts in data structures and keep them
separate from the stuff they are embedded in.
No functional change.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://patch.msgid.link/20251119172549.131573768@linutronix.de
Diffstat (limited to 'init')
| -rw-r--r-- | init/init_task.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/init/init_task.c b/init/init_task.c index a55e2189206f..5d122699b664 100644 --- a/init/init_task.c +++ b/init/init_task.c @@ -223,6 +223,9 @@ struct task_struct init_task __aligned(L1_CACHE_BYTES) = { #ifdef CONFIG_SECCOMP_FILTER .seccomp = { .filter_count = ATOMIC_INIT(0) }, #endif +#ifdef CONFIG_SCHED_MM_CID + .mm_cid = { .cid = MM_CID_UNSET, }, +#endif }; EXPORT_SYMBOL(init_task); |