]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/mips/sgi-ip27/ip27-klnuma.c
Merge branch 'drm-patches' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied...
[linux-2.6-omap-h63xx.git] / arch / mips / sgi-ip27 / ip27-klnuma.c
index f9f404a8ddad625348975d4678ee4183b21de102..48932ce1d7302bc7972a29be1d620273e83f3136 100644 (file)
@@ -11,7 +11,6 @@
 
 #include <asm/page.h>
 #include <asm/sections.h>
-#include <asm/smp.h>
 #include <asm/sn/types.h>
 #include <asm/sn/arch.h>
 #include <asm/sn/gda.h>
@@ -28,8 +27,6 @@ static cpumask_t ktext_repmask;
  */
 void __init setup_replication_mask(void)
 {
-       cnodeid_t       cnode;
-
        /* Set only the master cnode's bit.  The master cnode is always 0. */
        cpus_clear(ktext_repmask);
        cpu_set(0, ktext_repmask);
@@ -38,11 +35,15 @@ void __init setup_replication_mask(void)
 #ifndef CONFIG_MAPPED_KERNEL
 #error Kernel replication works with mapped kernel support. No calias support.
 #endif
-       for_each_online_node(cnode) {
-               if (cnode == 0)
-                       continue;
-               /* Advertise that we have a copy of the kernel */
-               cpu_set(cnode, ktext_repmask);
+       {
+               cnodeid_t       cnode;
+
+               for_each_online_node(cnode) {
+                       if (cnode == 0)
+                               continue;
+                       /* Advertise that we have a copy of the kernel */
+                       cpu_set(cnode, ktext_repmask);
+               }
        }
 #endif
        /* Set up a GDA pointer to the replication mask. */