diff options
author | Andrew Morton <akpm@osdl.org> | 2006-03-25 03:08:09 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 08:22:59 -0800 |
commit | 3d18bd74a22d0bed3bc81fc64c4ba6344a10f155 (patch) | |
tree | 414b44796651db833481e17030f0b18a1be3527b /lib/cpumask.c | |
parent | ccb46000f4bb459777686611157ac0eac928704e (diff) | |
download | blackbird-op-linux-3d18bd74a22d0bed3bc81fc64c4ba6344a10f155.tar.gz blackbird-op-linux-3d18bd74a22d0bed3bc81fc64c4ba6344a10f155.zip |
[PATCH] cpumask: uninline next_cpu()
text data bss dec hex filename
before: 3488027 1322496 360128 5170651 4ee5db vmlinux
after: 3485112 1322480 359968 5167560 4ed9c8 vmlinux
2931 bytes saved
Cc: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'lib/cpumask.c')
-rw-r--r-- | lib/cpumask.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/cpumask.c b/lib/cpumask.c index 1560d97390dd..ba2f8543052c 100644 --- a/lib/cpumask.c +++ b/lib/cpumask.c @@ -9,3 +9,8 @@ int __first_cpu(const cpumask_t *srcp) } EXPORT_SYMBOL(__first_cpu); +int __next_cpu(int n, const cpumask_t *srcp) +{ + return min_t(int, NR_CPUS, find_next_bit(srcp->bits, NR_CPUS, n+1)); +} +EXPORT_SYMBOL(__next_cpu); |