projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] more for_each_cpu() conversions
[linux-block.git]
/
arch
/
sh
/
kernel
/
setup.c
diff --git
a/arch/sh/kernel/setup.c
b/arch/sh/kernel/setup.c
index a067a34e0b64fe2e6cd23573b2cbecd975cf5a1a..c0e79843f580437ef9e3d15ec33148dbf8d2415d 100644
(file)
--- a/
arch/sh/kernel/setup.c
+++ b/
arch/sh/kernel/setup.c
@@
-404,9
+404,8
@@
static int __init topology_init(void)
{
int cpu_id;
- for (cpu_id = 0; cpu_id < NR_CPUS; cpu_id++)
- if (cpu_possible(cpu_id))
- register_cpu(&cpu[cpu_id], cpu_id, NULL);
+ for_each_cpu(cpu_id)
+ register_cpu(&cpu[cpu_id], cpu_id, NULL);
return 0;
}