]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[PATCH] sched: small topology.h cleanup
authorIngo Molnar <mingo@elte.hu>
Wed, 11 Jul 2007 19:21:47 +0000 (21:21 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 13 Jul 2007 17:11:52 +0000 (10:11 -0700)
trivial cleanup: LOCAL_DISTANCE and REMOTE_DISTANCE are only used in
topology.h and inside an #ifndef section - limit their existence to
that #ifndef.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/topology.h

index da6c39b2d051c30c7ec14df2b8f3b27115569ddc..d0890a7e5babb1f96b78a04fa6f471df0edbdd8e 100644 (file)
        for_each_online_node(node)                                              \
                if (nr_cpus_node(node))
 
-#ifndef node_distance
 /* Conform to ACPI 2.0 SLIT distance definitions */
 #define LOCAL_DISTANCE         10
 #define REMOTE_DISTANCE                20
+#ifndef node_distance
 #define node_distance(from,to) ((from) == (to) ? LOCAL_DISTANCE : REMOTE_DISTANCE)
 #endif
 #ifndef RECLAIM_DISTANCE