aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/netlogic/xlp/wakeup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/netlogic/xlp/wakeup.c')
-rw-r--r--arch/mips/netlogic/xlp/wakeup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/netlogic/xlp/wakeup.c b/arch/mips/netlogic/xlp/wakeup.c
index abb3e08cc052..feb573670f90 100644
--- a/arch/mips/netlogic/xlp/wakeup.c
+++ b/arch/mips/netlogic/xlp/wakeup.c
@@ -82,6 +82,7 @@ static void xlp_enable_secondary_cores(const cpumask_t *wakeup_mask)
82 struct nlm_soc_info *nodep; 82 struct nlm_soc_info *nodep;
83 uint64_t syspcibase; 83 uint64_t syspcibase;
84 uint32_t syscoremask; 84 uint32_t syscoremask;
85 volatile uint32_t *cpu_ready = nlm_get_boot_data(BOOT_CPU_READY);
85 int core, n, cpu, count, val; 86 int core, n, cpu, count, val;
86 87
87 for (n = 0; n < NLM_NR_NODES; n++) { 88 for (n = 0; n < NLM_NR_NODES; n++) {
@@ -125,7 +126,7 @@ static void xlp_enable_secondary_cores(const cpumask_t *wakeup_mask)
125 /* spin until the first hw thread sets its ready */ 126 /* spin until the first hw thread sets its ready */
126 count = 0x20000000; 127 count = 0x20000000;
127 do { 128 do {
128 val = *(volatile int *)&nlm_cpu_ready[cpu]; 129 val = cpu_ready[cpu];
129 } while (val == 0 && --count > 0); 130 } while (val == 0 && --count > 0);
130 } 131 }
131 } 132 }