/* * This file is subject to the terms and conditions of the GNU General * Public License. See the file "COPYING" in the main directory of this * archive for more details. * * Copyright (C) 2000 - 2001 by Kanoj Sarcar (kanoj@sgi.com) * Copyright (C) 2000 - 2001 by Silicon Graphics, Inc. * Copyright (C) 2000, 2001, 2002 Ralf Baechle * Copyright (C) 2000, 2001 Broadcom Corporation */ #ifndef __ASM_SMP_H #define __ASM_SMP_H #include <linux/bitops.h> #include <linux/linkage.h> #include <linux/smp.h> #include <linux/threads.h> #include <linux/cpumask.h> #include <linux/atomic.h> #include <asm/smp-ops.h> extern int smp_num_siblings; extern cpumask_t cpu_sibling_map[]; extern cpumask_t cpu_core_map[]; extern cpumask_t cpu_foreign_map[]; #define raw_smp_processor_id() (current_thread_info()->cpu) /* Map from cpu id to sequential logical cpu number. This will only not be idempotent when cpus failed to come on-line. */ extern int __cpu_number_map[NR_CPUS]; #define cpu_number_map(cpu) __cpu_number_map[cpu] /* The reverse map from sequential logical cpu number to cpu id. */ extern int __cpu_logical_map[NR_CPUS]; #define cpu_logical_map(cpu) __cpu_logical_map[cpu] #define NO_PROC_ID (-1) #define SMP_RESCHEDULE_YOURSELF 0x1 /* XXX braindead */ #define SMP_CALL_FUNCTION 0x2 /* Octeon - Tell another core to flush its icache */ #define SMP_ICACHE_FLUSH 0x4 #define SMP_ASK_C0COUNT 0x8 /* Mask of CPUs which are currently definitely operating coherently */ extern cpumask_t cpu_coherent_mask; extern asmlinkage void smp_bootstrap(void); extern void calculate_cpu_foreign_map(void); /* * this function sends a 'reschedule' IPI to another CPU. * it goes straight through and wastes no time serializing * anything. Worst case is that we lose a reschedule ... */
static inline void smp_send_reschedule(int cpu) { extern const struct plat_smp_ops *mp_ops; /* private */ mp_ops->send_ipi_single(cpu, SMP_RESCHEDULE_YOURSELF); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 18 | 66.67% | 2 | 50.00% |
Andrew Morton | 8 | 29.63% | 1 | 25.00% |
Matt Redfearn | 1 | 3.70% | 1 | 25.00% |
Total | 27 | 100.00% | 4 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 22 | 95.65% | 1 | 50.00% |
Matt Redfearn | 1 | 4.35% | 1 | 50.00% |
Total | 23 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 25 | 96.15% | 1 | 50.00% |
Matt Redfearn | 1 | 3.85% | 1 | 50.00% |
Total | 26 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 21 | 70.00% | 1 | 25.00% |
Jens Axboe | 7 | 23.33% | 1 | 25.00% |
Matt Redfearn | 1 | 3.33% | 1 | 25.00% |
Rusty Russell | 1 | 3.33% | 1 | 25.00% |
Total | 30 | 100.00% | 4 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 20 | 66.67% | 1 | 25.00% |
Rusty Russell | 5 | 16.67% | 1 | 25.00% |
Jens Axboe | 4 | 13.33% | 1 | 25.00% |
Matt Redfearn | 1 | 3.33% | 1 | 25.00% |
Total | 30 | 100.00% | 4 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 172 | 57.72% | 7 | 25.00% |
Matt Redfearn | 27 | 9.06% | 2 | 7.14% |
Andrew Morton | 22 | 7.38% | 2 | 7.14% |
Linus Torvalds | 20 | 6.71% | 1 | 3.57% |
Jens Axboe | 11 | 3.69% | 1 | 3.57% |
James Hogan | 8 | 2.68% | 2 | 7.14% |
Huacai Chen | 8 | 2.68% | 2 | 7.14% |
Linus Torvalds (pre-git) | 6 | 2.01% | 2 | 7.14% |
Rusty Russell | 6 | 2.01% | 2 | 7.14% |
Paul Burton | 5 | 1.68% | 1 | 3.57% |
David Daney | 5 | 1.68% | 1 | 3.57% |
Markos Chandras | 4 | 1.34% | 1 | 3.57% |
Marcin Nowakowski | 1 | 0.34% | 1 | 3.57% |
Joe Perches | 1 | 0.34% | 1 | 3.57% |
Ingo Molnar | 1 | 0.34% | 1 | 3.57% |
Arun Sharma | 1 | 0.34% | 1 | 3.57% |
Total | 298 | 100.00% | 28 | 100.00% |