mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[PATCH] cpumask: uninline first_cpu()
text data bss dec hex filename before: 3490577 1322408 360000 5172985 4eeef9 vmlinux after: 3488027 1322496 360128 5170651 4ee5db vmlinux Cc: Paul Jackson <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
64b9137943
commit
ccb46000f4
3 changed files with 19 additions and 5 deletions
11
lib/cpumask.c
Normal file
11
lib/cpumask.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include <linux/kernel.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/cpumask.h>
|
||||
#include <linux/module.h>
|
||||
|
||||
int __first_cpu(const cpumask_t *srcp)
|
||||
{
|
||||
return min_t(int, NR_CPUS, find_first_bit(srcp->bits, NR_CPUS));
|
||||
}
|
||||
EXPORT_SYMBOL(__first_cpu);
|
||||
|
||||
Loading…
Reference in a new issue