Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * arch/sh/kernel/smp.c |
| 3 | * |
| 4 | * SMP support for the SuperH processors. |
| 5 | * |
Paul Mundt | 173a44d | 2008-08-06 18:02:48 +0900 | [diff] [blame] | 6 | * Copyright (C) 2002 - 2008 Paul Mundt |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 7 | * Copyright (C) 2006 - 2007 Akio Idehara |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | * |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 9 | * This file is subject to the terms and conditions of the GNU General Public |
| 10 | * License. See the file "COPYING" in the main directory of this archive |
| 11 | * for more details. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | */ |
Evgeniy Polyakov | 66c5227 | 2007-05-31 13:46:21 +0900 | [diff] [blame] | 13 | #include <linux/err.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | #include <linux/cache.h> |
| 15 | #include <linux/cpumask.h> |
| 16 | #include <linux/delay.h> |
| 17 | #include <linux/init.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | #include <linux/spinlock.h> |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 19 | #include <linux/mm.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | #include <linux/module.h> |
Paul Mundt | b56050a | 2008-10-21 12:39:24 +0900 | [diff] [blame] | 21 | #include <linux/cpu.h> |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 22 | #include <linux/interrupt.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | #include <asm/atomic.h> |
| 24 | #include <asm/processor.h> |
| 25 | #include <asm/system.h> |
| 26 | #include <asm/mmu_context.h> |
| 27 | #include <asm/smp.h> |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 28 | #include <asm/cacheflush.h> |
| 29 | #include <asm/sections.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 31 | int __cpu_number_map[NR_CPUS]; /* Map physical to logical */ |
| 32 | int __cpu_logical_map[NR_CPUS]; /* Map logical to physical */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | static inline void __init smp_store_cpu_info(unsigned int cpu) |
| 35 | { |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 36 | struct sh_cpuinfo *c = cpu_data + cpu; |
| 37 | |
Paul Mundt | a66c2ed | 2009-10-14 14:14:30 +0900 | [diff] [blame] | 38 | memcpy(c, &boot_cpu_data, sizeof(struct sh_cpuinfo)); |
| 39 | |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 40 | c->loops_per_jiffy = loops_per_jiffy; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | void __init smp_prepare_cpus(unsigned int max_cpus) |
| 44 | { |
| 45 | unsigned int cpu = smp_processor_id(); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 46 | |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 47 | init_new_context(current, &init_mm); |
| 48 | current_thread_info()->cpu = cpu; |
| 49 | plat_prepare_cpus(max_cpus); |
| 50 | |
| 51 | #ifndef CONFIG_HOTPLUG_CPU |
Rusty Russell | e09377b | 2009-06-12 22:33:14 +0930 | [diff] [blame] | 52 | init_cpu_present(&cpu_possible_map); |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 53 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 54 | } |
| 55 | |
| 56 | void __devinit smp_prepare_boot_cpu(void) |
| 57 | { |
| 58 | unsigned int cpu = smp_processor_id(); |
| 59 | |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 60 | __cpu_number_map[0] = cpu; |
| 61 | __cpu_logical_map[0] = cpu; |
| 62 | |
Rusty Russell | e09377b | 2009-06-12 22:33:14 +0930 | [diff] [blame] | 63 | set_cpu_online(cpu, true); |
| 64 | set_cpu_possible(cpu, true); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 65 | } |
| 66 | |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 67 | asmlinkage void __cpuinit start_secondary(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 68 | { |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 69 | unsigned int cpu; |
| 70 | struct mm_struct *mm = &init_mm; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 71 | |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 72 | atomic_inc(&mm->mm_count); |
| 73 | atomic_inc(&mm->mm_users); |
| 74 | current->active_mm = mm; |
| 75 | BUG_ON(current->mm); |
| 76 | enter_lazy_tlb(mm, current); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 77 | |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 78 | per_cpu_trap_init(); |
| 79 | |
| 80 | preempt_disable(); |
| 81 | |
Manfred Spraul | e545a61 | 2008-09-07 16:57:22 +0200 | [diff] [blame] | 82 | notify_cpu_starting(smp_processor_id()); |
| 83 | |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 84 | local_irq_enable(); |
| 85 | |
Paul Mundt | 8c24594 | 2008-08-06 18:37:07 +0900 | [diff] [blame] | 86 | cpu = smp_processor_id(); |
| 87 | |
| 88 | /* Enable local timers */ |
| 89 | local_timer_setup(cpu); |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 90 | calibrate_delay(); |
| 91 | |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 92 | smp_store_cpu_info(cpu); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 93 | |
| 94 | cpu_set(cpu, cpu_online_map); |
| 95 | |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 96 | cpu_idle(); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 97 | } |
| 98 | |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 99 | extern struct { |
| 100 | unsigned long sp; |
| 101 | unsigned long bss_start; |
| 102 | unsigned long bss_end; |
| 103 | void *start_kernel_fn; |
| 104 | void *cpu_init_fn; |
| 105 | void *thread_info; |
| 106 | } stack_start; |
| 107 | |
| 108 | int __cpuinit __cpu_up(unsigned int cpu) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 109 | { |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 110 | struct task_struct *tsk; |
| 111 | unsigned long timeout; |
Nick Piggin | 5bfb5d6 | 2005-11-08 21:39:01 -0800 | [diff] [blame] | 112 | |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 113 | tsk = fork_idle(cpu); |
| 114 | if (IS_ERR(tsk)) { |
| 115 | printk(KERN_ERR "Failed forking idle task for cpu %d\n", cpu); |
| 116 | return PTR_ERR(tsk); |
| 117 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 118 | |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 119 | /* Fill in data in head.S for secondary cpus */ |
| 120 | stack_start.sp = tsk->thread.sp; |
| 121 | stack_start.thread_info = tsk->stack; |
| 122 | stack_start.bss_start = 0; /* don't clear bss for secondary cpus */ |
| 123 | stack_start.start_kernel_fn = start_secondary; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 124 | |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 125 | flush_cache_all(); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 126 | |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 127 | plat_start_cpu(cpu, (unsigned long)_stext); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 128 | |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 129 | timeout = jiffies + HZ; |
| 130 | while (time_before(jiffies, timeout)) { |
| 131 | if (cpu_online(cpu)) |
| 132 | break; |
| 133 | |
| 134 | udelay(10); |
| 135 | } |
| 136 | |
| 137 | if (cpu_online(cpu)) |
| 138 | return 0; |
| 139 | |
| 140 | return -ENOENT; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 141 | } |
| 142 | |
| 143 | void __init smp_cpus_done(unsigned int max_cpus) |
| 144 | { |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 145 | unsigned long bogosum = 0; |
| 146 | int cpu; |
| 147 | |
| 148 | for_each_online_cpu(cpu) |
| 149 | bogosum += cpu_data[cpu].loops_per_jiffy; |
| 150 | |
| 151 | printk(KERN_INFO "SMP: Total of %d processors activated " |
| 152 | "(%lu.%02lu BogoMIPS).\n", num_online_cpus(), |
| 153 | bogosum / (500000/HZ), |
| 154 | (bogosum / (5000/HZ)) % 100); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 155 | } |
| 156 | |
| 157 | void smp_send_reschedule(int cpu) |
| 158 | { |
Paul Mundt | aba1030 | 2007-09-21 18:32:32 +0900 | [diff] [blame] | 159 | plat_send_ipi(cpu, SMP_MSG_RESCHEDULE); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 160 | } |
| 161 | |
| 162 | static void stop_this_cpu(void *unused) |
| 163 | { |
| 164 | cpu_clear(smp_processor_id(), cpu_online_map); |
| 165 | local_irq_disable(); |
| 166 | |
| 167 | for (;;) |
| 168 | cpu_relax(); |
| 169 | } |
| 170 | |
| 171 | void smp_send_stop(void) |
| 172 | { |
Jens Axboe | 8691e5a | 2008-06-06 11:18:06 +0200 | [diff] [blame] | 173 | smp_call_function(stop_this_cpu, 0, 0); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 174 | } |
| 175 | |
Rusty Russell | 819807d | 2009-06-12 22:32:35 +0930 | [diff] [blame] | 176 | void arch_send_call_function_ipi_mask(const struct cpumask *mask) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 177 | { |
Jens Axboe | 490f5de | 2008-06-10 20:52:59 +0200 | [diff] [blame] | 178 | int cpu; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 179 | |
Rusty Russell | 819807d | 2009-06-12 22:32:35 +0930 | [diff] [blame] | 180 | for_each_cpu(cpu, mask) |
Jens Axboe | 490f5de | 2008-06-10 20:52:59 +0200 | [diff] [blame] | 181 | plat_send_ipi(cpu, SMP_MSG_FUNCTION); |
| 182 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 183 | |
Jens Axboe | 490f5de | 2008-06-10 20:52:59 +0200 | [diff] [blame] | 184 | void arch_send_call_function_single_ipi(int cpu) |
| 185 | { |
| 186 | plat_send_ipi(cpu, SMP_MSG_FUNCTION_SINGLE); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 187 | } |
| 188 | |
Rusty Russell | 320ab2b | 2008-12-13 21:20:26 +1030 | [diff] [blame] | 189 | void smp_timer_broadcast(const struct cpumask *mask) |
Paul Mundt | 6f52707 | 2008-08-06 18:21:03 +0900 | [diff] [blame] | 190 | { |
| 191 | int cpu; |
| 192 | |
Rusty Russell | 320ab2b | 2008-12-13 21:20:26 +1030 | [diff] [blame] | 193 | for_each_cpu(cpu, mask) |
Paul Mundt | 6f52707 | 2008-08-06 18:21:03 +0900 | [diff] [blame] | 194 | plat_send_ipi(cpu, SMP_MSG_TIMER); |
| 195 | } |
| 196 | |
| 197 | static void ipi_timer(void) |
| 198 | { |
| 199 | irq_enter(); |
Paul Mundt | 8c24594 | 2008-08-06 18:37:07 +0900 | [diff] [blame] | 200 | local_timer_interrupt(); |
Paul Mundt | 6f52707 | 2008-08-06 18:21:03 +0900 | [diff] [blame] | 201 | irq_exit(); |
| 202 | } |
| 203 | |
Paul Mundt | 173a44d | 2008-08-06 18:02:48 +0900 | [diff] [blame] | 204 | void smp_message_recv(unsigned int msg) |
| 205 | { |
| 206 | switch (msg) { |
| 207 | case SMP_MSG_FUNCTION: |
| 208 | generic_smp_call_function_interrupt(); |
| 209 | break; |
| 210 | case SMP_MSG_RESCHEDULE: |
| 211 | break; |
| 212 | case SMP_MSG_FUNCTION_SINGLE: |
| 213 | generic_smp_call_function_single_interrupt(); |
| 214 | break; |
Paul Mundt | 6f52707 | 2008-08-06 18:21:03 +0900 | [diff] [blame] | 215 | case SMP_MSG_TIMER: |
| 216 | ipi_timer(); |
| 217 | break; |
Paul Mundt | 173a44d | 2008-08-06 18:02:48 +0900 | [diff] [blame] | 218 | default: |
| 219 | printk(KERN_WARNING "SMP %d: %s(): unknown IPI %d\n", |
| 220 | smp_processor_id(), __func__, msg); |
| 221 | break; |
| 222 | } |
| 223 | } |
| 224 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 225 | /* Not really SMP stuff ... */ |
| 226 | int setup_profiling_timer(unsigned int multiplier) |
| 227 | { |
| 228 | return 0; |
| 229 | } |
| 230 | |
Paul Mundt | 9964fa8 | 2007-09-21 18:09:55 +0900 | [diff] [blame] | 231 | static void flush_tlb_all_ipi(void *info) |
| 232 | { |
| 233 | local_flush_tlb_all(); |
| 234 | } |
| 235 | |
| 236 | void flush_tlb_all(void) |
| 237 | { |
Jens Axboe | 15c8b6c | 2008-05-09 09:39:44 +0200 | [diff] [blame] | 238 | on_each_cpu(flush_tlb_all_ipi, 0, 1); |
Paul Mundt | 9964fa8 | 2007-09-21 18:09:55 +0900 | [diff] [blame] | 239 | } |
| 240 | |
| 241 | static void flush_tlb_mm_ipi(void *mm) |
| 242 | { |
| 243 | local_flush_tlb_mm((struct mm_struct *)mm); |
| 244 | } |
| 245 | |
| 246 | /* |
| 247 | * The following tlb flush calls are invoked when old translations are |
| 248 | * being torn down, or pte attributes are changing. For single threaded |
| 249 | * address spaces, a new context is obtained on the current cpu, and tlb |
| 250 | * context on other cpus are invalidated to force a new context allocation |
| 251 | * at switch_mm time, should the mm ever be used on other cpus. For |
| 252 | * multithreaded address spaces, intercpu interrupts have to be sent. |
| 253 | * Another case where intercpu interrupts are required is when the target |
| 254 | * mm might be active on another cpu (eg debuggers doing the flushes on |
| 255 | * behalf of debugees, kswapd stealing pages from another process etc). |
| 256 | * Kanoj 07/00. |
| 257 | */ |
| 258 | |
| 259 | void flush_tlb_mm(struct mm_struct *mm) |
| 260 | { |
| 261 | preempt_disable(); |
| 262 | |
| 263 | if ((atomic_read(&mm->mm_users) != 1) || (current->mm != mm)) { |
Jens Axboe | 8691e5a | 2008-06-06 11:18:06 +0200 | [diff] [blame] | 264 | smp_call_function(flush_tlb_mm_ipi, (void *)mm, 1); |
Paul Mundt | 9964fa8 | 2007-09-21 18:09:55 +0900 | [diff] [blame] | 265 | } else { |
| 266 | int i; |
| 267 | for (i = 0; i < num_online_cpus(); i++) |
| 268 | if (smp_processor_id() != i) |
| 269 | cpu_context(i, mm) = 0; |
| 270 | } |
| 271 | local_flush_tlb_mm(mm); |
| 272 | |
| 273 | preempt_enable(); |
| 274 | } |
| 275 | |
| 276 | struct flush_tlb_data { |
| 277 | struct vm_area_struct *vma; |
| 278 | unsigned long addr1; |
| 279 | unsigned long addr2; |
| 280 | }; |
| 281 | |
| 282 | static void flush_tlb_range_ipi(void *info) |
| 283 | { |
| 284 | struct flush_tlb_data *fd = (struct flush_tlb_data *)info; |
| 285 | |
| 286 | local_flush_tlb_range(fd->vma, fd->addr1, fd->addr2); |
| 287 | } |
| 288 | |
| 289 | void flush_tlb_range(struct vm_area_struct *vma, |
| 290 | unsigned long start, unsigned long end) |
| 291 | { |
| 292 | struct mm_struct *mm = vma->vm_mm; |
| 293 | |
| 294 | preempt_disable(); |
| 295 | if ((atomic_read(&mm->mm_users) != 1) || (current->mm != mm)) { |
| 296 | struct flush_tlb_data fd; |
| 297 | |
| 298 | fd.vma = vma; |
| 299 | fd.addr1 = start; |
| 300 | fd.addr2 = end; |
Jens Axboe | 8691e5a | 2008-06-06 11:18:06 +0200 | [diff] [blame] | 301 | smp_call_function(flush_tlb_range_ipi, (void *)&fd, 1); |
Paul Mundt | 9964fa8 | 2007-09-21 18:09:55 +0900 | [diff] [blame] | 302 | } else { |
| 303 | int i; |
| 304 | for (i = 0; i < num_online_cpus(); i++) |
| 305 | if (smp_processor_id() != i) |
| 306 | cpu_context(i, mm) = 0; |
| 307 | } |
| 308 | local_flush_tlb_range(vma, start, end); |
| 309 | preempt_enable(); |
| 310 | } |
| 311 | |
| 312 | static void flush_tlb_kernel_range_ipi(void *info) |
| 313 | { |
| 314 | struct flush_tlb_data *fd = (struct flush_tlb_data *)info; |
| 315 | |
| 316 | local_flush_tlb_kernel_range(fd->addr1, fd->addr2); |
| 317 | } |
| 318 | |
| 319 | void flush_tlb_kernel_range(unsigned long start, unsigned long end) |
| 320 | { |
| 321 | struct flush_tlb_data fd; |
| 322 | |
| 323 | fd.addr1 = start; |
| 324 | fd.addr2 = end; |
Jens Axboe | 15c8b6c | 2008-05-09 09:39:44 +0200 | [diff] [blame] | 325 | on_each_cpu(flush_tlb_kernel_range_ipi, (void *)&fd, 1); |
Paul Mundt | 9964fa8 | 2007-09-21 18:09:55 +0900 | [diff] [blame] | 326 | } |
| 327 | |
| 328 | static void flush_tlb_page_ipi(void *info) |
| 329 | { |
| 330 | struct flush_tlb_data *fd = (struct flush_tlb_data *)info; |
| 331 | |
| 332 | local_flush_tlb_page(fd->vma, fd->addr1); |
| 333 | } |
| 334 | |
| 335 | void flush_tlb_page(struct vm_area_struct *vma, unsigned long page) |
| 336 | { |
| 337 | preempt_disable(); |
| 338 | if ((atomic_read(&vma->vm_mm->mm_users) != 1) || |
| 339 | (current->mm != vma->vm_mm)) { |
| 340 | struct flush_tlb_data fd; |
| 341 | |
| 342 | fd.vma = vma; |
| 343 | fd.addr1 = page; |
Jens Axboe | 8691e5a | 2008-06-06 11:18:06 +0200 | [diff] [blame] | 344 | smp_call_function(flush_tlb_page_ipi, (void *)&fd, 1); |
Paul Mundt | 9964fa8 | 2007-09-21 18:09:55 +0900 | [diff] [blame] | 345 | } else { |
| 346 | int i; |
| 347 | for (i = 0; i < num_online_cpus(); i++) |
| 348 | if (smp_processor_id() != i) |
| 349 | cpu_context(i, vma->vm_mm) = 0; |
| 350 | } |
| 351 | local_flush_tlb_page(vma, page); |
| 352 | preempt_enable(); |
| 353 | } |
| 354 | |
| 355 | static void flush_tlb_one_ipi(void *info) |
| 356 | { |
| 357 | struct flush_tlb_data *fd = (struct flush_tlb_data *)info; |
| 358 | local_flush_tlb_one(fd->addr1, fd->addr2); |
| 359 | } |
| 360 | |
| 361 | void flush_tlb_one(unsigned long asid, unsigned long vaddr) |
| 362 | { |
| 363 | struct flush_tlb_data fd; |
| 364 | |
| 365 | fd.addr1 = asid; |
| 366 | fd.addr2 = vaddr; |
| 367 | |
Jens Axboe | 8691e5a | 2008-06-06 11:18:06 +0200 | [diff] [blame] | 368 | smp_call_function(flush_tlb_one_ipi, (void *)&fd, 1); |
Paul Mundt | 9964fa8 | 2007-09-21 18:09:55 +0900 | [diff] [blame] | 369 | local_flush_tlb_one(asid, vaddr); |
| 370 | } |