Searched hist:"2248 ccd80124e61c2c84a22b22409bab452e1f0c" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/include/linux/ |
H A D | cpumask.h | 2248ccd80124e61c2c84a22b22409bab452e1f0c Tue Aug 09 12:36:34 CDT 2022 Sander Vanheule <sander@svanheule.net> lib/cpumask: add inline cpumask_next_wrap() for UP
In the uniprocessor case, cpumask_next_wrap() can be simplified, as the number of valid argument combinations is limited: - 'start' can only be 0 - 'n' can only be -1 or 0
The only valid CPU that can then be returned, if any, will be the first one set in the provided 'mask'.
For NR_CPUS == 1, include/linux/cpumask.h now provides an inline definition of cpumask_next_wrap(), which will conflict with the one provided by lib/cpumask.c. Make building of lib/cpumask.o again depend on CONFIG_SMP=y (i.e. NR_CPUS > 1) to avoid the re-definition.
Suggested-by: Yury Norov <yury.norov@gmail.com> Signed-off-by: Sander Vanheule <sander@svanheule.net> Signed-off-by: Yury Norov <yury.norov@gmail.com>
|
/openbmc/linux/lib/ |
H A D | Makefile | 2248ccd80124e61c2c84a22b22409bab452e1f0c Tue Aug 09 12:36:34 CDT 2022 Sander Vanheule <sander@svanheule.net> lib/cpumask: add inline cpumask_next_wrap() for UP
In the uniprocessor case, cpumask_next_wrap() can be simplified, as the number of valid argument combinations is limited: - 'start' can only be 0 - 'n' can only be -1 or 0
The only valid CPU that can then be returned, if any, will be the first one set in the provided 'mask'.
For NR_CPUS == 1, include/linux/cpumask.h now provides an inline definition of cpumask_next_wrap(), which will conflict with the one provided by lib/cpumask.c. Make building of lib/cpumask.o again depend on CONFIG_SMP=y (i.e. NR_CPUS > 1) to avoid the re-definition.
Suggested-by: Yury Norov <yury.norov@gmail.com> Signed-off-by: Sander Vanheule <sander@svanheule.net> Signed-off-by: Yury Norov <yury.norov@gmail.com>
|