Sam Ravnborg | aba20a8 | 2011-01-28 22:08:20 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * sun4m SMP support. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | * |
| 4 | * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu) |
| 5 | */ |
| 6 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | #include <linux/interrupt.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | #include <linux/profile.h> |
Adrian Bunk | 6c81c32 | 2008-02-06 01:37:51 -0800 | [diff] [blame] | 9 | #include <linux/delay.h> |
Robert Reif | 4245e59 | 2008-10-12 20:52:26 -0700 | [diff] [blame] | 10 | #include <linux/cpu.h> |
Adrian Bunk | 6c81c32 | 2008-02-06 01:37:51 -0800 | [diff] [blame] | 11 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | #include <asm/cacheflush.h> |
| 13 | #include <asm/tlbflush.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | |
Al Viro | 32231a6 | 2007-07-21 19:18:57 -0700 | [diff] [blame] | 15 | #include "irq.h" |
Sam Ravnborg | aba20a8 | 2011-01-28 22:08:20 +0000 | [diff] [blame^] | 16 | #include "kernel.h" |
Al Viro | 32231a6 | 2007-07-21 19:18:57 -0700 | [diff] [blame] | 17 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | #define IRQ_CROSS_CALL 15 |
| 19 | |
Wu Fengguang | 1a8a27c | 2009-01-07 18:09:10 -0800 | [diff] [blame] | 20 | static inline unsigned long |
| 21 | swap_ulong(volatile unsigned long *ptr, unsigned long val) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | { |
| 23 | __asm__ __volatile__("swap [%1], %0\n\t" : |
| 24 | "=&r" (val), "=&r" (ptr) : |
| 25 | "0" (val), "1" (ptr)); |
| 26 | return val; |
| 27 | } |
| 28 | |
| 29 | static void smp_setup_percpu_timer(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | |
Bob Breuer | 92d452f | 2006-06-20 00:36:10 -0700 | [diff] [blame] | 31 | void __cpuinit smp4m_callin(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | { |
| 33 | int cpuid = hard_smp_processor_id(); |
| 34 | |
| 35 | local_flush_cache_all(); |
| 36 | local_flush_tlb_all(); |
| 37 | |
Manfred Spraul | e545a61 | 2008-09-07 16:57:22 +0200 | [diff] [blame] | 38 | notify_cpu_starting(cpuid); |
| 39 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | /* Get our local ticker going. */ |
| 41 | smp_setup_percpu_timer(); |
| 42 | |
| 43 | calibrate_delay(); |
| 44 | smp_store_cpu_info(cpuid); |
| 45 | |
| 46 | local_flush_cache_all(); |
| 47 | local_flush_tlb_all(); |
| 48 | |
| 49 | /* |
| 50 | * Unblock the master CPU _only_ when the scheduler state |
| 51 | * of all secondary CPUs will be up-to-date, so after |
| 52 | * the SMP initialization the master will be just allowed |
| 53 | * to call the scheduler code. |
| 54 | */ |
| 55 | /* Allow master to continue. */ |
Wu Fengguang | 1a8a27c | 2009-01-07 18:09:10 -0800 | [diff] [blame] | 56 | swap_ulong(&cpu_callin_map[cpuid], 1); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 57 | |
Bob Breuer | a54123e | 2006-03-23 22:36:19 -0800 | [diff] [blame] | 58 | /* XXX: What's up with all the flushes? */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 59 | local_flush_cache_all(); |
| 60 | local_flush_tlb_all(); |
Sam Ravnborg | aba20a8 | 2011-01-28 22:08:20 +0000 | [diff] [blame^] | 61 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 62 | cpu_probe(); |
| 63 | |
| 64 | /* Fix idle thread fields. */ |
| 65 | __asm__ __volatile__("ld [%0], %%g6\n\t" |
| 66 | : : "r" (¤t_set[cpuid]) |
| 67 | : "memory" /* paranoid */); |
| 68 | |
| 69 | /* Attach to the address space of init_task. */ |
| 70 | atomic_inc(&init_mm.mm_count); |
| 71 | current->active_mm = &init_mm; |
| 72 | |
Bob Breuer | a54123e | 2006-03-23 22:36:19 -0800 | [diff] [blame] | 73 | while (!cpu_isset(cpuid, smp_commenced_mask)) |
| 74 | mb(); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 75 | |
| 76 | local_irq_enable(); |
Bob Breuer | a54123e | 2006-03-23 22:36:19 -0800 | [diff] [blame] | 77 | |
Rusty Russell | fe73971 | 2009-03-16 14:40:22 +1030 | [diff] [blame] | 78 | set_cpu_online(cpuid, true); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 79 | } |
| 80 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 81 | /* |
| 82 | * Cycle through the processors asking the PROM to start each one. |
| 83 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 84 | void __init smp4m_boot_cpus(void) |
| 85 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 86 | smp_setup_percpu_timer(); |
| 87 | local_flush_cache_all(); |
Bob Breuer | a54123e | 2006-03-23 22:36:19 -0800 | [diff] [blame] | 88 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 89 | |
Bob Breuer | 92d452f | 2006-06-20 00:36:10 -0700 | [diff] [blame] | 90 | int __cpuinit smp4m_boot_one_cpu(int i) |
Bob Breuer | a54123e | 2006-03-23 22:36:19 -0800 | [diff] [blame] | 91 | { |
Bob Breuer | a54123e | 2006-03-23 22:36:19 -0800 | [diff] [blame] | 92 | unsigned long *entry = &sun4m_cpu_startup; |
| 93 | struct task_struct *p; |
| 94 | int timeout; |
| 95 | int cpu_node; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 96 | |
Bob Breuer | a54123e | 2006-03-23 22:36:19 -0800 | [diff] [blame] | 97 | cpu_find_by_mid(i, &cpu_node); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 98 | |
Bob Breuer | a54123e | 2006-03-23 22:36:19 -0800 | [diff] [blame] | 99 | /* Cook up an idler for this guy. */ |
| 100 | p = fork_idle(i); |
| 101 | current_set[i] = task_thread_info(p); |
| 102 | /* See trampoline.S for details... */ |
Sam Ravnborg | aba20a8 | 2011-01-28 22:08:20 +0000 | [diff] [blame^] | 103 | entry += ((i - 1) * 3); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 104 | |
Bob Breuer | a54123e | 2006-03-23 22:36:19 -0800 | [diff] [blame] | 105 | /* |
| 106 | * Initialize the contexts table |
| 107 | * Since the call to prom_startcpu() trashes the structure, |
| 108 | * we need to re-initialize it for each cpu |
| 109 | */ |
| 110 | smp_penguin_ctable.which_io = 0; |
| 111 | smp_penguin_ctable.phys_addr = (unsigned int) srmmu_ctx_table_phys; |
| 112 | smp_penguin_ctable.reg_size = 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 113 | |
Bob Breuer | a54123e | 2006-03-23 22:36:19 -0800 | [diff] [blame] | 114 | /* whirrr, whirrr, whirrrrrrrrr... */ |
Sam Ravnborg | aba20a8 | 2011-01-28 22:08:20 +0000 | [diff] [blame^] | 115 | printk(KERN_INFO "Starting CPU %d at %p\n", i, entry); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 116 | local_flush_cache_all(); |
Sam Ravnborg | aba20a8 | 2011-01-28 22:08:20 +0000 | [diff] [blame^] | 117 | prom_startcpu(cpu_node, &smp_penguin_ctable, 0, (char *)entry); |
Bob Breuer | a54123e | 2006-03-23 22:36:19 -0800 | [diff] [blame] | 118 | |
| 119 | /* wheee... it's going... */ |
Sam Ravnborg | aba20a8 | 2011-01-28 22:08:20 +0000 | [diff] [blame^] | 120 | for (timeout = 0; timeout < 10000; timeout++) { |
| 121 | if (cpu_callin_map[i]) |
Bob Breuer | a54123e | 2006-03-23 22:36:19 -0800 | [diff] [blame] | 122 | break; |
| 123 | udelay(200); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 124 | } |
| 125 | |
Bob Breuer | a54123e | 2006-03-23 22:36:19 -0800 | [diff] [blame] | 126 | if (!(cpu_callin_map[i])) { |
Sam Ravnborg | aba20a8 | 2011-01-28 22:08:20 +0000 | [diff] [blame^] | 127 | printk(KERN_ERR "Processor %d is stuck.\n", i); |
Bob Breuer | a54123e | 2006-03-23 22:36:19 -0800 | [diff] [blame] | 128 | return -ENODEV; |
| 129 | } |
| 130 | |
| 131 | local_flush_cache_all(); |
| 132 | return 0; |
| 133 | } |
| 134 | |
| 135 | void __init smp4m_smp_done(void) |
| 136 | { |
| 137 | int i, first; |
| 138 | int *prev; |
| 139 | |
| 140 | /* setup cpu list for irq rotation */ |
| 141 | first = 0; |
| 142 | prev = &first; |
Rusty Russell | ec7c14b | 2009-03-16 14:40:24 +1030 | [diff] [blame] | 143 | for_each_online_cpu(i) { |
| 144 | *prev = i; |
| 145 | prev = &cpu_data(i).next; |
Bob Breuer | a54123e | 2006-03-23 22:36:19 -0800 | [diff] [blame] | 146 | } |
| 147 | *prev = first; |
| 148 | local_flush_cache_all(); |
| 149 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 150 | /* Ok, they are spinning and ready to go. */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 151 | } |
| 152 | |
| 153 | /* At each hardware IRQ, we get this called to forward IRQ reception |
| 154 | * to the next processor. The caller must disable the IRQ level being |
| 155 | * serviced globally so that there are no double interrupts received. |
| 156 | * |
| 157 | * XXX See sparc64 irq.c. |
| 158 | */ |
| 159 | void smp4m_irq_rotate(int cpu) |
| 160 | { |
Bob Breuer | a54123e | 2006-03-23 22:36:19 -0800 | [diff] [blame] | 161 | int next = cpu_data(cpu).next; |
Sam Ravnborg | aba20a8 | 2011-01-28 22:08:20 +0000 | [diff] [blame^] | 162 | |
Bob Breuer | a54123e | 2006-03-23 22:36:19 -0800 | [diff] [blame] | 163 | if (next != cpu) |
| 164 | set_irq_udt(next); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 165 | } |
| 166 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 167 | static struct smp_funcall { |
| 168 | smpfunc_t func; |
| 169 | unsigned long arg1; |
| 170 | unsigned long arg2; |
| 171 | unsigned long arg3; |
| 172 | unsigned long arg4; |
| 173 | unsigned long arg5; |
Bob Breuer | a54123e | 2006-03-23 22:36:19 -0800 | [diff] [blame] | 174 | unsigned long processors_in[SUN4M_NCPUS]; /* Set when ipi entered. */ |
| 175 | unsigned long processors_out[SUN4M_NCPUS]; /* Set when ipi exited. */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 176 | } ccall_info; |
| 177 | |
| 178 | static DEFINE_SPINLOCK(cross_call_lock); |
| 179 | |
| 180 | /* Cross calls must be serialized, at least currently. */ |
David S. Miller | 66e4f8c | 2008-08-27 20:03:22 -0700 | [diff] [blame] | 181 | static void smp4m_cross_call(smpfunc_t func, cpumask_t mask, unsigned long arg1, |
Adrian Bunk | c61c65c | 2008-06-05 11:40:58 -0700 | [diff] [blame] | 182 | unsigned long arg2, unsigned long arg3, |
David S. Miller | 66e4f8c | 2008-08-27 20:03:22 -0700 | [diff] [blame] | 183 | unsigned long arg4) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 184 | { |
Bob Breuer | a54123e | 2006-03-23 22:36:19 -0800 | [diff] [blame] | 185 | register int ncpus = SUN4M_NCPUS; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 186 | unsigned long flags; |
| 187 | |
| 188 | spin_lock_irqsave(&cross_call_lock, flags); |
| 189 | |
| 190 | /* Init function glue. */ |
| 191 | ccall_info.func = func; |
| 192 | ccall_info.arg1 = arg1; |
| 193 | ccall_info.arg2 = arg2; |
| 194 | ccall_info.arg3 = arg3; |
| 195 | ccall_info.arg4 = arg4; |
David S. Miller | 66e4f8c | 2008-08-27 20:03:22 -0700 | [diff] [blame] | 196 | ccall_info.arg5 = 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 197 | |
| 198 | /* Init receive/complete mapping, plus fire the IPI's off. */ |
| 199 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 200 | register int i; |
| 201 | |
| 202 | cpu_clear(smp_processor_id(), mask); |
David S. Miller | 66e4f8c | 2008-08-27 20:03:22 -0700 | [diff] [blame] | 203 | cpus_and(mask, cpu_online_map, mask); |
Sam Ravnborg | aba20a8 | 2011-01-28 22:08:20 +0000 | [diff] [blame^] | 204 | for (i = 0; i < ncpus; i++) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 205 | if (cpu_isset(i, mask)) { |
| 206 | ccall_info.processors_in[i] = 0; |
| 207 | ccall_info.processors_out[i] = 0; |
| 208 | set_cpu_int(i, IRQ_CROSS_CALL); |
| 209 | } else { |
| 210 | ccall_info.processors_in[i] = 1; |
| 211 | ccall_info.processors_out[i] = 1; |
| 212 | } |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | { |
| 217 | register int i; |
| 218 | |
| 219 | i = 0; |
| 220 | do { |
David S. Miller | 66e4f8c | 2008-08-27 20:03:22 -0700 | [diff] [blame] | 221 | if (!cpu_isset(i, mask)) |
| 222 | continue; |
Sam Ravnborg | aba20a8 | 2011-01-28 22:08:20 +0000 | [diff] [blame^] | 223 | while (!ccall_info.processors_in[i]) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 224 | barrier(); |
Sam Ravnborg | aba20a8 | 2011-01-28 22:08:20 +0000 | [diff] [blame^] | 225 | } while (++i < ncpus); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 226 | |
| 227 | i = 0; |
| 228 | do { |
David S. Miller | 66e4f8c | 2008-08-27 20:03:22 -0700 | [diff] [blame] | 229 | if (!cpu_isset(i, mask)) |
| 230 | continue; |
Sam Ravnborg | aba20a8 | 2011-01-28 22:08:20 +0000 | [diff] [blame^] | 231 | while (!ccall_info.processors_out[i]) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 232 | barrier(); |
Sam Ravnborg | aba20a8 | 2011-01-28 22:08:20 +0000 | [diff] [blame^] | 233 | } while (++i < ncpus); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 234 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 235 | spin_unlock_irqrestore(&cross_call_lock, flags); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 236 | } |
| 237 | |
| 238 | /* Running cross calls. */ |
| 239 | void smp4m_cross_call_irq(void) |
| 240 | { |
| 241 | int i = smp_processor_id(); |
| 242 | |
| 243 | ccall_info.processors_in[i] = 1; |
| 244 | ccall_info.func(ccall_info.arg1, ccall_info.arg2, ccall_info.arg3, |
| 245 | ccall_info.arg4, ccall_info.arg5); |
| 246 | ccall_info.processors_out[i] = 1; |
| 247 | } |
| 248 | |
| 249 | void smp4m_percpu_timer_interrupt(struct pt_regs *regs) |
| 250 | { |
Al Viro | 0d84438 | 2006-10-08 14:30:44 +0100 | [diff] [blame] | 251 | struct pt_regs *old_regs; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 252 | int cpu = smp_processor_id(); |
| 253 | |
Al Viro | 0d84438 | 2006-10-08 14:30:44 +0100 | [diff] [blame] | 254 | old_regs = set_irq_regs(regs); |
| 255 | |
David S. Miller | 1de937a | 2008-09-13 22:07:56 -0700 | [diff] [blame] | 256 | sun4m_clear_profile_irq(cpu); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 257 | |
Al Viro | 0d84438 | 2006-10-08 14:30:44 +0100 | [diff] [blame] | 258 | profile_tick(CPU_PROFILING); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 259 | |
Sam Ravnborg | aba20a8 | 2011-01-28 22:08:20 +0000 | [diff] [blame^] | 260 | if (!--prof_counter(cpu)) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 261 | int user = user_mode(regs); |
| 262 | |
| 263 | irq_enter(); |
| 264 | update_process_times(user); |
| 265 | irq_exit(); |
| 266 | |
| 267 | prof_counter(cpu) = prof_multiplier(cpu); |
| 268 | } |
Al Viro | 0d84438 | 2006-10-08 14:30:44 +0100 | [diff] [blame] | 269 | set_irq_regs(old_regs); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 270 | } |
| 271 | |
Al Viro | 409832f | 2008-11-22 17:33:54 +0000 | [diff] [blame] | 272 | static void __cpuinit smp_setup_percpu_timer(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 273 | { |
| 274 | int cpu = smp_processor_id(); |
| 275 | |
| 276 | prof_counter(cpu) = prof_multiplier(cpu) = 1; |
| 277 | load_profile_irq(cpu, lvl14_resolution); |
| 278 | |
Sam Ravnborg | aba20a8 | 2011-01-28 22:08:20 +0000 | [diff] [blame^] | 279 | if (cpu == boot_cpu_id) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 280 | enable_pil_irq(14); |
| 281 | } |
| 282 | |
Adrian Bunk | c61c65c | 2008-06-05 11:40:58 -0700 | [diff] [blame] | 283 | static void __init smp4m_blackbox_id(unsigned *addr) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 284 | { |
| 285 | int rd = *addr & 0x3e000000; |
| 286 | int rs1 = rd >> 11; |
Sam Ravnborg | aba20a8 | 2011-01-28 22:08:20 +0000 | [diff] [blame^] | 287 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 288 | addr[0] = 0x81580000 | rd; /* rd %tbr, reg */ |
Sam Ravnborg | aba20a8 | 2011-01-28 22:08:20 +0000 | [diff] [blame^] | 289 | addr[1] = 0x8130200c | rd | rs1; /* srl reg, 0xc, reg */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 290 | addr[2] = 0x80082003 | rd | rs1; /* and reg, 3, reg */ |
| 291 | } |
| 292 | |
Adrian Bunk | c61c65c | 2008-06-05 11:40:58 -0700 | [diff] [blame] | 293 | static void __init smp4m_blackbox_current(unsigned *addr) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 294 | { |
| 295 | int rd = *addr & 0x3e000000; |
| 296 | int rs1 = rd >> 11; |
Sam Ravnborg | aba20a8 | 2011-01-28 22:08:20 +0000 | [diff] [blame^] | 297 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 298 | addr[0] = 0x81580000 | rd; /* rd %tbr, reg */ |
Sam Ravnborg | aba20a8 | 2011-01-28 22:08:20 +0000 | [diff] [blame^] | 299 | addr[2] = 0x8130200a | rd | rs1; /* srl reg, 0xa, reg */ |
David S. Miller | 4cad691 | 2007-04-30 17:59:50 -0700 | [diff] [blame] | 300 | addr[4] = 0x8008200c | rd | rs1; /* and reg, 0xc, reg */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 301 | } |
| 302 | |
| 303 | void __init sun4m_init_smp(void) |
| 304 | { |
| 305 | BTFIXUPSET_BLACKBOX(hard_smp_processor_id, smp4m_blackbox_id); |
| 306 | BTFIXUPSET_BLACKBOX(load_current, smp4m_blackbox_current); |
| 307 | BTFIXUPSET_CALL(smp_cross_call, smp4m_cross_call, BTFIXUPCALL_NORM); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 308 | BTFIXUPSET_CALL(__hard_smp_processor_id, __smp4m_processor_id, BTFIXUPCALL_NORM); |
| 309 | } |