]> Pileus Git - ~andy/linux/blobdiff - arch/mips/netlogic/xlr/wakeup.c
MIPS: Delete __cpuinit/__CPUINIT usage from MIPS code
[~andy/linux] / arch / mips / netlogic / xlr / wakeup.c
index 3ebf7411d67b1280cc77ee857b287f32c92c6612..9fb81fa6272a753b805952166dd5e8dc45cb93ee 100644 (file)
 #include <asm/netlogic/xlr/iomap.h>
 #include <asm/netlogic/xlr/pic.h>
 
-int __cpuinit xlr_wakeup_secondary_cpus(void)
+int xlr_wakeup_secondary_cpus(void)
 {
        struct nlm_soc_info *nodep;
        unsigned int i, j, boot_cpu;
+       volatile u32 *cpu_ready = nlm_get_boot_data(BOOT_CPU_READY);
 
        /*
         *  In case of RMI boot, hit with NMI to get the cores
@@ -71,7 +72,7 @@ int __cpuinit xlr_wakeup_secondary_cpus(void)
        nodep->coremask = 1;
        for (i = 1; i < NLM_CORES_PER_NODE; i++) {
                for (j = 1000000; j > 0; j--) {
-                       if (nlm_cpu_ready[i * NLM_THREADS_PER_CORE])
+                       if (cpu_ready[i * NLM_THREADS_PER_CORE])
                                break;
                        udelay(10);
                }