/* * 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 void asmlinkage 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 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 | 69.23% | 2 | 66.67% |
Andrew Morton | 8 | 30.77% | 1 | 33.33% |
Total | 26 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 22 | 100.00% | 1 | 100.00% |
Total | 22 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 25 | 100.00% | 1 | 100.00% |
Total | 25 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 21 | 72.41% | 1 | 33.33% |
Jens Axboe | 7 | 24.14% | 1 | 33.33% |
Rusty Russell | 1 | 3.45% | 1 | 33.33% |
Total | 29 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 20 | 68.97% | 1 | 33.33% |
Rusty Russell | 5 | 17.24% | 1 | 33.33% |
Jens Axboe | 4 | 13.79% | 1 | 33.33% |
Total | 29 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ralf Bächle | 172 | 58.70% | 7 | 26.92% |
Andrew Morton | 23 | 7.85% | 2 | 7.69% |
Matt Redfearn | 22 | 7.51% | 1 | 3.85% |
Linus Torvalds | 20 | 6.83% | 1 | 3.85% |
Jens Axboe | 11 | 3.75% | 1 | 3.85% |
Huacai Chen | 8 | 2.73% | 2 | 7.69% |
James Hogan | 8 | 2.73% | 2 | 7.69% |
Linus Torvalds (pre-git) | 6 | 2.05% | 2 | 7.69% |
Rusty Russell | 6 | 2.05% | 2 | 7.69% |
Paul Burton | 5 | 1.71% | 1 | 3.85% |
David Daney | 5 | 1.71% | 1 | 3.85% |
Markos Chandras | 4 | 1.37% | 1 | 3.85% |
Arun Sharma | 1 | 0.34% | 1 | 3.85% |
Marcin Nowakowski | 1 | 0.34% | 1 | 3.85% |
Ingo Molnar | 1 | 0.34% | 1 | 3.85% |
Total | 293 | 100.00% | 26 | 100.00% |