mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
We're going to be adding a few new barrier primitives, and in order to avoid endless duplication make more agressive use of asm-generic/barrier.h. Change the asm-generic/barrier.h such that it allows partial barrier definitions and fills out the rest with defaults. There are a few architectures (m32r, m68k) that could probably do away with their barrier.h file entirely but are kept for now due to their unconventional nop() implementation. Suggested-by: Geert Uytterhoeven <[email protected]> Reviewed-by: "Paul E. McKenney" <[email protected]> Reviewed-by: Mathieu Desnoyers <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Michael Neuling <[email protected]> Cc: Russell King <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Martin Schwidefsky <[email protected]> Cc: Victor Kaplansky <[email protected]> Cc: Tony Luck <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Frederic Weisbecker <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
23 lines
574 B
C
23 lines
574 B
C
/*
|
|
* Copyright (C) 2004-2006 Atmel Corporation
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
#ifndef __ASM_AVR32_BARRIER_H
|
|
#define __ASM_AVR32_BARRIER_H
|
|
|
|
/*
|
|
* Weirdest thing ever.. no full barrier, but it has a write barrier!
|
|
*/
|
|
#define wmb() asm volatile("sync 0" : : : "memory")
|
|
|
|
#ifdef CONFIG_SMP
|
|
# error "The AVR32 port does not support SMP"
|
|
#endif
|
|
|
|
#include <asm-generic/barrier.h>
|
|
|
|
#endif /* __ASM_AVR32_BARRIER_H */
|