diff options
| author | 2025-11-19 18:27:01 +0100 | |
|---|---|---|
| committer | 2025-11-25 19:45:40 +0100 | |
| commit | 35a5c37cb9f1f947dff18e7cfc75a8cfcfd557ca (patch) | |
| tree | 433d9305c706e6a9f64ba61ca6e57cdba42a433f /tools/arch/alpha/include/uapi/git:/ssh:/git@git.zx2c4.com | |
| parent | sched/mmcid: Use cpumask_weighted_or() (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 'tools/arch/alpha/include/uapi/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
