]> git.baikalelectronics.ru Git - kernel.git/commit
[SPARC]: Simplify and correct __cpu_find_by()
authorDavid S. Miller <davem@sunset.davemloft.net>
Tue, 18 Jul 2006 04:49:58 +0000 (21:49 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 21 Jul 2006 21:18:15 +0000 (14:18 -0700)
commite0a9a5c213de0236a42223b4982f97f7db5a38ff
tree2e9d456da9b1dc7437edca0dcb6b7069f24ed5ae
parent8f4a839e85eeee54a3e7a522d06d3e4894b5ee66
[SPARC]: Simplify and correct __cpu_find_by()

By using for_each_node_by_type().

Also, correct a spurioud test in check_cpu_node() on sparc64.
It is only called with nodes that have device_type "cpu".

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/devices.c
arch/sparc64/kernel/devices.c