diff options
author | Sander Vanheule <sander@svanheule.net> | 2022-08-09 19:36:35 +0200 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2022-08-15 11:00:44 -0700 |
commit | 61b123ffcedac72a1ac6a96d1da87d25efddcbda (patch) | |
tree | 6040819dada33686b686117e650b62971efc3d56 /lib/cpumask.c | |
parent | 2248ccd80124e61c2c84a22b22409bab452e1f0c (diff) | |
download | linux-rpi-61b123ffcedac72a1ac6a96d1da87d25efddcbda.tar.gz linux-rpi-61b123ffcedac72a1ac6a96d1da87d25efddcbda.tar.bz2 linux-rpi-61b123ffcedac72a1ac6a96d1da87d25efddcbda.zip |
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 <sander@svanheule.net>
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Diffstat (limited to 'lib/cpumask.c')
-rw-r--r-- | lib/cpumask.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/cpumask.c b/lib/cpumask.c index 8baeb37e23d3..f0ae119be8c4 100644 --- a/lib/cpumask.c +++ b/lib/cpumask.c @@ -109,7 +109,6 @@ void __init free_bootmem_cpumask_var(cpumask_var_t mask) } #endif -#if NR_CPUS > 1 /** * cpumask_local_spread - select the i'th cpu with local numa cpu's first * @i: index number @@ -197,4 +196,3 @@ unsigned int cpumask_any_distribute(const struct cpumask *srcp) return next; } EXPORT_SYMBOL(cpumask_any_distribute); -#endif /* NR_CPUS */ |