Commit 61b123ff authored by Sander Vanheule's avatar Sander Vanheule Committed by Yury Norov

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: default avatarSander Vanheule <sander@svanheule.net>
Signed-off-by: default avatarYury Norov <yury.norov@gmail.com>
parent 2248ccd8
...@@ -109,7 +109,6 @@ void __init free_bootmem_cpumask_var(cpumask_var_t mask) ...@@ -109,7 +109,6 @@ void __init free_bootmem_cpumask_var(cpumask_var_t mask)
} }
#endif #endif
#if NR_CPUS > 1
/** /**
* cpumask_local_spread - select the i'th cpu with local numa cpu's first * cpumask_local_spread - select the i'th cpu with local numa cpu's first
* @i: index number * @i: index number
...@@ -197,4 +196,3 @@ unsigned int cpumask_any_distribute(const struct cpumask *srcp) ...@@ -197,4 +196,3 @@ unsigned int cpumask_any_distribute(const struct cpumask *srcp)
return next; return next;
} }
EXPORT_SYMBOL(cpumask_any_distribute); EXPORT_SYMBOL(cpumask_any_distribute);
#endif /* NR_CPUS */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment