Skip to content

Commit 61b123f

Browse files
svanheuleYuryNorov
authored andcommitted
lib/cpumask: drop always-true preprocessor guard
Since lib/cpumask.o is only built for CONFIG_SMP=y, NR_CPUS will always be greater than 1 at compile time. This makes checking for that condition unnecesarry, so it can be dropped. Signed-off-by: Sander Vanheule <[email protected]> Signed-off-by: Yury Norov <[email protected]>
1 parent 2248ccd commit 61b123f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/cpumask.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ void __init free_bootmem_cpumask_var(cpumask_var_t mask)
109109
}
110110
#endif
111111

112-
#if NR_CPUS > 1
113112
/**
114113
* cpumask_local_spread - select the i'th cpu with local numa cpu's first
115114
* @i: index number
@@ -197,4 +196,3 @@ unsigned int cpumask_any_distribute(const struct cpumask *srcp)
197196
return next;
198197
}
199198
EXPORT_SYMBOL(cpumask_any_distribute);
200-
#endif /* NR_CPUS */

0 commit comments

Comments
 (0)