forked from luck/tmp_suning_uos_patched
8d20a541b0
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>
8 lines
203 B
C
8 lines
203 B
C
#ifndef __ASM_CRIS_ARCH_ATOMIC__
|
|
#define __ASM_CRIS_ARCH_ATOMIC__
|
|
|
|
#define cris_atomic_save(addr, flags) local_irq_save(flags);
|
|
#define cris_atomic_restore(addr, flags) local_irq_restore(flags);
|
|
|
|
#endif
|