Thread (4 messages) 4 messages, 2 authors, 2023-03-15

Re: [PATCH 1/2] sched/topology: introduce node_has_cpus() macro

From: Valentin Schneider <vschneid@redhat.com>
Date: 2023-03-15 16:49:22
Also in: lkml

On 21/02/23 18:50, Yury Norov wrote:
Currently, to check if NUMA node has CPUs, one has to use the
nr_cpus_node() macro, which ends up with cpumask_weight. We can do it
better with cpumask_empty(), because the latter can potentially return
earlier - as soon as 1st set bit found.

This patch adds a node_has_cpus() macro to implement that.

Signed-off-by: Yury Norov <yury.norov@gmail.com>
Reviewed-by: Valentin Schneider <vschneid@redhat.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help