diff options
author | Mikael Starvik <mikael.starvik@axis.com> | 2005-07-27 14:44:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-27 19:26:01 -0400 |
commit | 8d20a541b089ecb67a88a673548161b686ed7b85 (patch) | |
tree | 53bac804d538068c80684becb76cd76937956502 /arch/cris/arch-v10/mm/init.c | |
parent | 21783c9746619a782c21be606f6498bbd4d4615e (diff) |
[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 'arch/cris/arch-v10/mm/init.c')
-rw-r--r-- | arch/cris/arch-v10/mm/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/cris/arch-v10/mm/init.c b/arch/cris/arch-v10/mm/init.c index a9f975a9cfb5..ff3481e76dd4 100644 --- a/arch/cris/arch-v10/mm/init.c +++ b/arch/cris/arch-v10/mm/init.c | |||
@@ -42,7 +42,7 @@ paging_init(void) | |||
42 | * switch_mm) | 42 | * switch_mm) |
43 | */ | 43 | */ |
44 | 44 | ||
45 | current_pgd = init_mm.pgd; | 45 | per_cpu(current_pgd, smp_processor_id()) = init_mm.pgd; |
46 | 46 | ||
47 | /* initialise the TLB (tlb.c) */ | 47 | /* initialise the TLB (tlb.c) */ |
48 | 48 | ||