diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2025-11-19 18:27:01 +0100 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2025-11-25 19:45:40 +0100 |
| commit | 35a5c37cb9f1f947dff18e7cfc75a8cfcfd557ca (patch) | |
| tree | 433d9305c706e6a9f64ba61ca6e57cdba42a433f /kernel/exit.c | |
| parent | 79c11fb3da8581a2f222b290ce62a153ab1108fc (diff) | |
cpumask: Cache num_possible_cpus()
Reevaluating num_possible_cpus() over and over does not make sense. That
becomes a constant after init as cpu_possible_mask is marked ro_after_init.
Cache the value during initialization and provide that for consumption.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Yury Norov <yury.norov@gmail.com>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Reviewed-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Link: https://patch.msgid.link/20251119172549.578653738@linutronix.de
Diffstat (limited to 'kernel/exit.c')
0 files changed, 0 insertions, 0 deletions