Thomas Gleixner | 457c899 | 2019-05-19 13:08:55 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
| 3 | * SMP Support |
| 4 | * |
| 5 | * Copyright (C) 1999 Walt Drummond <drummond@valinux.com> |
| 6 | * Copyright (C) 1999, 2001, 2003 David Mosberger-Tang <davidm@hpl.hp.com> |
| 7 | * |
| 8 | * Lots of stuff stolen from arch/alpha/kernel/smp.c |
| 9 | * |
| 10 | * 01/05/16 Rohit Seth <rohit.seth@intel.com> IA64-SMP functions. Reorganized |
| 11 | * the existing code (on the lines of x86 port). |
| 12 | * 00/09/11 David Mosberger <davidm@hpl.hp.com> Do loops_per_jiffy |
| 13 | * calibration on each CPU. |
| 14 | * 00/08/23 Asit Mallick <asit.k.mallick@intel.com> fixed logical processor id |
| 15 | * 00/03/31 Rohit Seth <rohit.seth@intel.com> Fixes for Bootstrap Processor |
| 16 | * & cpu_online_map now gets done here (instead of setup.c) |
| 17 | * 99/10/05 davidm Update to bring it in sync with new command-line processing |
| 18 | * scheme. |
| 19 | * 10/13/00 Goutham Rao <goutham.rao@intel.com> Updated smp_call_function and |
| 20 | * smp_call_function_single to resend IPI on timeouts |
| 21 | */ |
| 22 | #include <linux/module.h> |
| 23 | #include <linux/kernel.h> |
| 24 | #include <linux/sched.h> |
| 25 | #include <linux/init.h> |
| 26 | #include <linux/interrupt.h> |
| 27 | #include <linux/smp.h> |
| 28 | #include <linux/kernel_stat.h> |
| 29 | #include <linux/mm.h> |
| 30 | #include <linux/cache.h> |
| 31 | #include <linux/delay.h> |
| 32 | #include <linux/efi.h> |
| 33 | #include <linux/bitops.h> |
Zou Nan hai | a7956113 | 2006-12-07 09:51:35 -0800 | [diff] [blame] | 34 | #include <linux/kexec.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | |
Arun Sharma | 60063497 | 2011-07-26 16:09:06 -0700 | [diff] [blame] | 36 | #include <linux/atomic.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 37 | #include <asm/current.h> |
| 38 | #include <asm/delay.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | #include <asm/io.h> |
| 40 | #include <asm/irq.h> |
| 41 | #include <asm/page.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 42 | #include <asm/processor.h> |
| 43 | #include <asm/ptrace.h> |
| 44 | #include <asm/sal.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 45 | #include <asm/tlbflush.h> |
| 46 | #include <asm/unistd.h> |
| 47 | #include <asm/mca.h> |
Peter Zijlstra | b354519 | 2020-08-06 14:36:20 +0200 | [diff] [blame] | 48 | #include <asm/xtp.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 49 | |
| 50 | /* |
Jack Steiner | 3be44b9 | 2007-05-08 14:50:43 -0700 | [diff] [blame] | 51 | * Note: alignment of 4 entries/cacheline was empirically determined |
| 52 | * to be a good tradeoff between hot cachelines & spreading the array |
| 53 | * across too many cacheline. |
| 54 | */ |
| 55 | static struct local_tlb_flush_counts { |
| 56 | unsigned int count; |
| 57 | } __attribute__((__aligned__(32))) local_tlb_flush_counts[NR_CPUS]; |
| 58 | |
Tejun Heo | b9bf312 | 2009-06-24 15:13:47 +0900 | [diff] [blame] | 59 | static DEFINE_PER_CPU_SHARED_ALIGNED(unsigned short [NR_CPUS], |
| 60 | shadow_flush_counts); |
Jack Steiner | 3be44b9 | 2007-05-08 14:50:43 -0700 | [diff] [blame] | 61 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 62 | #define IPI_CALL_FUNC 0 |
| 63 | #define IPI_CPU_STOP 1 |
Jens Axboe | f27b433 | 2008-06-26 11:22:30 +0200 | [diff] [blame] | 64 | #define IPI_CALL_FUNC_SINGLE 2 |
Zou Nan hai | a7956113 | 2006-12-07 09:51:35 -0800 | [diff] [blame] | 65 | #define IPI_KDUMP_CPU_STOP 3 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 66 | |
| 67 | /* This needs to be cacheline aligned because it is written to by *other* CPUs. */ |
Matthew Wilcox | e088a4a | 2009-05-22 13:49:49 -0700 | [diff] [blame] | 68 | static DEFINE_PER_CPU_SHARED_ALIGNED(unsigned long, ipi_operation); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 69 | |
| 70 | extern void cpu_halt (void); |
| 71 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 72 | static void |
Hidetoshi Seto | c0cd661 | 2008-04-30 18:55:48 +0900 | [diff] [blame] | 73 | stop_this_cpu(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 74 | { |
| 75 | /* |
| 76 | * Remove this CPU: |
| 77 | */ |
Srivatsa S. Bhat | 7d7f984 | 2012-03-28 14:42:46 -0700 | [diff] [blame] | 78 | set_cpu_online(smp_processor_id(), false); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 79 | max_xtp(); |
| 80 | local_irq_disable(); |
| 81 | cpu_halt(); |
| 82 | } |
| 83 | |
| 84 | void |
| 85 | cpu_die(void) |
| 86 | { |
| 87 | max_xtp(); |
| 88 | local_irq_disable(); |
| 89 | cpu_halt(); |
| 90 | /* Should never be here */ |
| 91 | BUG(); |
| 92 | for (;;); |
| 93 | } |
| 94 | |
| 95 | irqreturn_t |
Keith Owens | 024e4f2 | 2006-10-18 15:36:49 +1000 | [diff] [blame] | 96 | handle_IPI (int irq, void *dev_id) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 97 | { |
| 98 | int this_cpu = get_cpu(); |
| 99 | unsigned long *pending_ipis = &__ia64_per_cpu_var(ipi_operation); |
| 100 | unsigned long ops; |
| 101 | |
| 102 | mb(); /* Order interrupt and bit testing. */ |
| 103 | while ((ops = xchg(pending_ipis, 0)) != 0) { |
| 104 | mb(); /* Order bit clearing and data access. */ |
| 105 | do { |
| 106 | unsigned long which; |
| 107 | |
| 108 | which = ffz(~ops); |
| 109 | ops &= ~(1 << which); |
| 110 | |
| 111 | switch (which) { |
Hidetoshi Seto | c0cd661 | 2008-04-30 18:55:48 +0900 | [diff] [blame] | 112 | case IPI_CPU_STOP: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 113 | stop_this_cpu(); |
| 114 | break; |
Jens Axboe | f27b433 | 2008-06-26 11:22:30 +0200 | [diff] [blame] | 115 | case IPI_CALL_FUNC: |
| 116 | generic_smp_call_function_interrupt(); |
| 117 | break; |
| 118 | case IPI_CALL_FUNC_SINGLE: |
| 119 | generic_smp_call_function_single_interrupt(); |
| 120 | break; |
Horms | 45a98fc | 2006-12-12 17:49:03 +0900 | [diff] [blame] | 121 | #ifdef CONFIG_KEXEC |
Hidetoshi Seto | c0cd661 | 2008-04-30 18:55:48 +0900 | [diff] [blame] | 122 | case IPI_KDUMP_CPU_STOP: |
Zou Nan hai | a7956113 | 2006-12-07 09:51:35 -0800 | [diff] [blame] | 123 | unw_init_running(kdump_cpu_freeze, NULL); |
| 124 | break; |
| 125 | #endif |
Hidetoshi Seto | c0cd661 | 2008-04-30 18:55:48 +0900 | [diff] [blame] | 126 | default: |
| 127 | printk(KERN_CRIT "Unknown IPI on CPU %d: %lu\n", |
| 128 | this_cpu, which); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 129 | break; |
| 130 | } |
| 131 | } while (ops); |
| 132 | mb(); /* Order data access and bit testing. */ |
| 133 | } |
| 134 | put_cpu(); |
| 135 | return IRQ_HANDLED; |
| 136 | } |
| 137 | |
Jens Axboe | f27b433 | 2008-06-26 11:22:30 +0200 | [diff] [blame] | 138 | |
| 139 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 140 | /* |
Simon Arlott | 72fdbdc | 2007-05-11 14:55:43 -0700 | [diff] [blame] | 141 | * Called with preemption disabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 142 | */ |
| 143 | static inline void |
| 144 | send_IPI_single (int dest_cpu, int op) |
| 145 | { |
| 146 | set_bit(op, &per_cpu(ipi_operation, dest_cpu)); |
Christoph Hellwig | 05933aa | 2019-08-13 09:25:02 +0200 | [diff] [blame] | 147 | ia64_send_ipi(dest_cpu, IA64_IPI_VECTOR, IA64_IPI_DM_INT, 0); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 148 | } |
| 149 | |
| 150 | /* |
Simon Arlott | 72fdbdc | 2007-05-11 14:55:43 -0700 | [diff] [blame] | 151 | * Called with preemption disabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 152 | */ |
| 153 | static inline void |
| 154 | send_IPI_allbutself (int op) |
| 155 | { |
| 156 | unsigned int i; |
| 157 | |
hawkes@sgi.com | dc565b5 | 2005-10-10 08:43:26 -0700 | [diff] [blame] | 158 | for_each_online_cpu(i) { |
| 159 | if (i != smp_processor_id()) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 160 | send_IPI_single(i, op); |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | /* |
Simon Arlott | 72fdbdc | 2007-05-11 14:55:43 -0700 | [diff] [blame] | 165 | * Called with preemption disabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 166 | */ |
| 167 | static inline void |
Rusty Russell | 40fe697 | 2009-03-16 14:12:41 +1030 | [diff] [blame] | 168 | send_IPI_mask(const struct cpumask *mask, int op) |
Xiantao Zhang | 31a6b11 | 2008-04-03 11:39:43 -0700 | [diff] [blame] | 169 | { |
| 170 | unsigned int cpu; |
| 171 | |
Rusty Russell | 40fe697 | 2009-03-16 14:12:41 +1030 | [diff] [blame] | 172 | for_each_cpu(cpu, mask) { |
Xiantao Zhang | 31a6b11 | 2008-04-03 11:39:43 -0700 | [diff] [blame] | 173 | send_IPI_single(cpu, op); |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | /* |
| 178 | * Called with preemption disabled. |
| 179 | */ |
| 180 | static inline void |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 181 | send_IPI_all (int op) |
| 182 | { |
| 183 | int i; |
| 184 | |
hawkes@sgi.com | dc565b5 | 2005-10-10 08:43:26 -0700 | [diff] [blame] | 185 | for_each_online_cpu(i) { |
| 186 | send_IPI_single(i, op); |
| 187 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 188 | } |
| 189 | |
| 190 | /* |
Simon Arlott | 72fdbdc | 2007-05-11 14:55:43 -0700 | [diff] [blame] | 191 | * Called with preemption disabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 192 | */ |
| 193 | static inline void |
| 194 | send_IPI_self (int op) |
| 195 | { |
| 196 | send_IPI_single(smp_processor_id(), op); |
| 197 | } |
| 198 | |
Horms | 45a98fc | 2006-12-12 17:49:03 +0900 | [diff] [blame] | 199 | #ifdef CONFIG_KEXEC |
Zou Nan hai | a7956113 | 2006-12-07 09:51:35 -0800 | [diff] [blame] | 200 | void |
Al Viro | ccbebda | 2007-02-09 16:38:10 +0000 | [diff] [blame] | 201 | kdump_smp_send_stop(void) |
Zou Nan hai | a7956113 | 2006-12-07 09:51:35 -0800 | [diff] [blame] | 202 | { |
| 203 | send_IPI_allbutself(IPI_KDUMP_CPU_STOP); |
| 204 | } |
| 205 | |
| 206 | void |
Al Viro | ccbebda | 2007-02-09 16:38:10 +0000 | [diff] [blame] | 207 | kdump_smp_send_init(void) |
Zou Nan hai | a7956113 | 2006-12-07 09:51:35 -0800 | [diff] [blame] | 208 | { |
| 209 | unsigned int cpu, self_cpu; |
| 210 | self_cpu = smp_processor_id(); |
| 211 | for_each_online_cpu(cpu) { |
| 212 | if (cpu != self_cpu) { |
| 213 | if(kdump_status[cpu] == 0) |
Christoph Hellwig | 05933aa | 2019-08-13 09:25:02 +0200 | [diff] [blame] | 214 | ia64_send_ipi(cpu, 0, IA64_IPI_DM_INIT, 0); |
Zou Nan hai | a7956113 | 2006-12-07 09:51:35 -0800 | [diff] [blame] | 215 | } |
| 216 | } |
| 217 | } |
| 218 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 219 | /* |
Simon Arlott | 72fdbdc | 2007-05-11 14:55:43 -0700 | [diff] [blame] | 220 | * Called with preemption disabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 221 | */ |
| 222 | void |
| 223 | smp_send_reschedule (int cpu) |
| 224 | { |
Christoph Hellwig | 05933aa | 2019-08-13 09:25:02 +0200 | [diff] [blame] | 225 | ia64_send_ipi(cpu, IA64_IPI_RESCHEDULE, IA64_IPI_DM_INT, 0); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 226 | } |
Marcelo Tosatti | c4cb768 | 2009-04-14 18:08:37 -0300 | [diff] [blame] | 227 | EXPORT_SYMBOL_GPL(smp_send_reschedule); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 228 | |
Jack Steiner | 3be44b9 | 2007-05-08 14:50:43 -0700 | [diff] [blame] | 229 | /* |
Simon Arlott | 72fdbdc | 2007-05-11 14:55:43 -0700 | [diff] [blame] | 230 | * Called with preemption disabled. |
Jack Steiner | 3be44b9 | 2007-05-08 14:50:43 -0700 | [diff] [blame] | 231 | */ |
| 232 | static void |
| 233 | smp_send_local_flush_tlb (int cpu) |
| 234 | { |
Christoph Hellwig | 05933aa | 2019-08-13 09:25:02 +0200 | [diff] [blame] | 235 | ia64_send_ipi(cpu, IA64_IPI_LOCAL_TLB_FLUSH, IA64_IPI_DM_INT, 0); |
Jack Steiner | 3be44b9 | 2007-05-08 14:50:43 -0700 | [diff] [blame] | 236 | } |
| 237 | |
| 238 | void |
| 239 | smp_local_flush_tlb(void) |
| 240 | { |
| 241 | /* |
| 242 | * Use atomic ops. Otherwise, the load/increment/store sequence from |
| 243 | * a "++" operation can have the line stolen between the load & store. |
| 244 | * The overhead of the atomic op in negligible in this case & offers |
| 245 | * significant benefit for the brief periods where lots of cpus |
| 246 | * are simultaneously flushing TLBs. |
| 247 | */ |
| 248 | ia64_fetchadd(1, &local_tlb_flush_counts[smp_processor_id()].count, acq); |
| 249 | local_flush_tlb_all(); |
| 250 | } |
| 251 | |
| 252 | #define FLUSH_DELAY 5 /* Usec backoff to eliminate excessive cacheline bouncing */ |
| 253 | |
| 254 | void |
| 255 | smp_flush_tlb_cpumask(cpumask_t xcpumask) |
| 256 | { |
Robin Holt | 97653f9 | 2008-08-15 09:21:24 -0500 | [diff] [blame] | 257 | unsigned short *counts = __ia64_per_cpu_var(shadow_flush_counts); |
Jack Steiner | 3be44b9 | 2007-05-08 14:50:43 -0700 | [diff] [blame] | 258 | cpumask_t cpumask = xcpumask; |
| 259 | int mycpu, cpu, flush_mycpu = 0; |
| 260 | |
| 261 | preempt_disable(); |
| 262 | mycpu = smp_processor_id(); |
| 263 | |
Rusty Russell | 5d2068d | 2015-03-05 10:49:16 +1030 | [diff] [blame] | 264 | for_each_cpu(cpu, &cpumask) |
Robin Holt | 97653f9 | 2008-08-15 09:21:24 -0500 | [diff] [blame] | 265 | counts[cpu] = local_tlb_flush_counts[cpu].count & 0xffff; |
Jack Steiner | 3be44b9 | 2007-05-08 14:50:43 -0700 | [diff] [blame] | 266 | |
| 267 | mb(); |
Rusty Russell | 5d2068d | 2015-03-05 10:49:16 +1030 | [diff] [blame] | 268 | for_each_cpu(cpu, &cpumask) { |
Jack Steiner | 3be44b9 | 2007-05-08 14:50:43 -0700 | [diff] [blame] | 269 | if (cpu == mycpu) |
| 270 | flush_mycpu = 1; |
| 271 | else |
| 272 | smp_send_local_flush_tlb(cpu); |
| 273 | } |
| 274 | |
| 275 | if (flush_mycpu) |
| 276 | smp_local_flush_tlb(); |
| 277 | |
Rusty Russell | 5d2068d | 2015-03-05 10:49:16 +1030 | [diff] [blame] | 278 | for_each_cpu(cpu, &cpumask) |
Robin Holt | 97653f9 | 2008-08-15 09:21:24 -0500 | [diff] [blame] | 279 | while(counts[cpu] == (local_tlb_flush_counts[cpu].count & 0xffff)) |
Jack Steiner | 3be44b9 | 2007-05-08 14:50:43 -0700 | [diff] [blame] | 280 | udelay(FLUSH_DELAY); |
| 281 | |
| 282 | preempt_enable(); |
| 283 | } |
| 284 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 285 | void |
| 286 | smp_flush_tlb_all (void) |
| 287 | { |
Jens Axboe | 15c8b6c | 2008-05-09 09:39:44 +0200 | [diff] [blame] | 288 | on_each_cpu((void (*)(void *))local_flush_tlb_all, NULL, 1); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 289 | } |
| 290 | |
| 291 | void |
| 292 | smp_flush_tlb_mm (struct mm_struct *mm) |
| 293 | { |
Dimitri Sivanich | 75c1c91 | 2010-12-28 13:34:42 -0600 | [diff] [blame] | 294 | cpumask_var_t cpus; |
Peter Chubb | a68db763 | 2005-06-23 21:14:00 -0700 | [diff] [blame] | 295 | preempt_disable(); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 296 | /* this happens for the common case of a single-threaded fork(): */ |
| 297 | if (likely(mm == current->active_mm && atomic_read(&mm->mm_users) == 1)) |
| 298 | { |
| 299 | local_finish_flush_tlb_mm(mm); |
Peter Chubb | a68db763 | 2005-06-23 21:14:00 -0700 | [diff] [blame] | 300 | preempt_enable(); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 301 | return; |
| 302 | } |
Dimitri Sivanich | 75c1c91 | 2010-12-28 13:34:42 -0600 | [diff] [blame] | 303 | if (!alloc_cpumask_var(&cpus, GFP_ATOMIC)) { |
| 304 | smp_call_function((void (*)(void *))local_finish_flush_tlb_mm, |
| 305 | mm, 1); |
| 306 | } else { |
| 307 | cpumask_copy(cpus, mm_cpumask(mm)); |
| 308 | smp_call_function_many(cpus, |
| 309 | (void (*)(void *))local_finish_flush_tlb_mm, mm, 1); |
| 310 | free_cpumask_var(cpus); |
| 311 | } |
Dimitri Sivanich | edb91dc | 2009-04-15 10:56:25 -0500 | [diff] [blame] | 312 | local_irq_disable(); |
| 313 | local_finish_flush_tlb_mm(mm); |
| 314 | local_irq_enable(); |
Peter Chubb | a68db763 | 2005-06-23 21:14:00 -0700 | [diff] [blame] | 315 | preempt_enable(); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 316 | } |
| 317 | |
Jens Axboe | f27b433 | 2008-06-26 11:22:30 +0200 | [diff] [blame] | 318 | void arch_send_call_function_single_ipi(int cpu) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 319 | { |
Jens Axboe | f27b433 | 2008-06-26 11:22:30 +0200 | [diff] [blame] | 320 | send_IPI_single(cpu, IPI_CALL_FUNC_SINGLE); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 321 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 322 | |
Rusty Russell | 40fe697 | 2009-03-16 14:12:41 +1030 | [diff] [blame] | 323 | void arch_send_call_function_ipi_mask(const struct cpumask *mask) |
Xiantao Zhang | 31a6b11 | 2008-04-03 11:39:43 -0700 | [diff] [blame] | 324 | { |
Jens Axboe | f27b433 | 2008-06-26 11:22:30 +0200 | [diff] [blame] | 325 | send_IPI_mask(mask, IPI_CALL_FUNC); |
Xiantao Zhang | 31a6b11 | 2008-04-03 11:39:43 -0700 | [diff] [blame] | 326 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 327 | |
| 328 | /* |
| 329 | * this function calls the 'stop' function on all other CPUs in the system. |
| 330 | */ |
| 331 | void |
| 332 | smp_send_stop (void) |
| 333 | { |
| 334 | send_IPI_allbutself(IPI_CPU_STOP); |
| 335 | } |
| 336 | |
Tony Luck | cb2e091 | 2007-07-20 16:14:28 -0700 | [diff] [blame] | 337 | int |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 338 | setup_profiling_timer (unsigned int multiplier) |
| 339 | { |
| 340 | return -EINVAL; |
| 341 | } |