diff options
author | Mikael Starvik <mikael.starvik@axis.com> | 2005-07-27 11:44:42 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-27 16:26:01 -0700 |
commit | 8d20a541b089ecb67a88a673548161b686ed7b85 (patch) | |
tree | 53bac804d538068c80684becb76cd76937956502 /include/asm-cris/smp.h | |
parent | 21783c9746619a782c21be606f6498bbd4d4615e (diff) | |
download | linux-rpi-8d20a541b089ecb67a88a673548161b686ed7b85.tar.gz linux-rpi-8d20a541b089ecb67a88a673548161b686ed7b85.tar.bz2 linux-rpi-8d20a541b089ecb67a88a673548161b686ed7b85.zip |
[PATCH] CRIS update: SMP
Patches to support SMP.
* Each CPU has its own current_pgd.
* flush_tlb_range is implemented as flush_tlb_mm.
* Atomic operations implemented with spinlocks.
* Semaphores implemented with spinlocks.
Signed-off-by: Mikael Starvik <starvik@axis.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-cris/smp.h')
-rw-r--r-- | include/asm-cris/smp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-cris/smp.h b/include/asm-cris/smp.h index c2f4feaa041d..dca5ef1d8c97 100644 --- a/include/asm-cris/smp.h +++ b/include/asm-cris/smp.h @@ -1,4 +1,11 @@ #ifndef __ASM_SMP_H #define __ASM_SMP_H +#include <linux/cpumask.h> + +extern cpumask_t phys_cpu_present_map; +#define cpu_possible_map phys_cpu_present_map + +#define __smp_processor_id() (current_thread_info()->cpu) + #endif |