/* * 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 /* Used by kexec crashdump to save all cpu's state */ #define SMP_DUMP 0x8 #define SMP_ASK_C0COUNT 0x10 extern cpumask_t cpu_callin_map; /* 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 baechle | ralf baechle | 18 | 69.23% | 2 | 66.67% |
andrew morton | andrew morton | 8 | 30.77% | 1 | 33.33% |
Total | 26 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
ralf baechle | ralf baechle | 22 | 100.00% | 1 | 100.00% |
Total | 22 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
ralf baechle | ralf baechle | 25 | 100.00% | 1 | 100.00% |
Total | 25 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
ralf baechle | ralf baechle | 21 | 72.41% | 1 | 33.33% |
jens axboe | jens axboe | 7 | 24.14% | 1 | 33.33% |
rusty russell | rusty russell | 1 | 3.45% | 1 | 33.33% |
Total | 29 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
ralf baechle | ralf baechle | 20 | 68.97% | 1 | 33.33% |
rusty russell | rusty russell | 5 | 17.24% | 1 | 33.33% |
jens axboe | jens axboe | 4 | 13.79% | 1 | 33.33% |
Total | 29 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
ralf baechle | ralf baechle | 214 | 63.88% | 8 | 30.77% |
andrew morton | andrew morton | 23 | 6.87% | 2 | 7.69% |
matt redfearn | matt redfearn | 22 | 6.57% | 1 | 3.85% |
linus torvalds | linus torvalds | 20 | 5.97% | 1 | 3.85% |
jens axboe | jens axboe | 11 | 3.28% | 1 | 3.85% |
huacai chen | huacai chen | 9 | 2.69% | 2 | 7.69% |
james hogan | james hogan | 8 | 2.39% | 2 | 7.69% |
rusty russell | rusty russell | 6 | 1.79% | 2 | 7.69% |
pre-git | pre-git | 6 | 1.79% | 2 | 7.69% |
david daney | david daney | 5 | 1.49% | 1 | 3.85% |
paul burton | paul burton | 5 | 1.49% | 1 | 3.85% |
markos chandras | markos chandras | 4 | 1.19% | 1 | 3.85% |
ingo molnar | ingo molnar | 1 | 0.30% | 1 | 3.85% |
arun sharma | arun sharma | 1 | 0.30% | 1 | 3.85% |
Total | 335 | 100.00% | 26 | 100.00% |