summaryrefslogtreecommitdiffstats
path: root/arch/frv/include/asm/system.h
diff options
context:
space:
mode:
authorAmerigo Wang <amwang@redhat.com>2011-03-29 14:05:12 +0100
committerDavid Howells <dhowells@redhat.com>2011-03-29 14:05:12 +0100
commit5ca7202bc4db3e2fd5653c52a608601c7a64a2ac (patch)
treed252f9bbb5d026912ff7a6591b7815334da9990c /arch/frv/include/asm/system.h
parent5ef9bdde9cd8e7f9d43a975b47f520ca64cbd0a1 (diff)
downloadblackbird-op-linux-5ca7202bc4db3e2fd5653c52a608601c7a64a2ac.tar.gz
blackbird-op-linux-5ca7202bc4db3e2fd5653c52a608601c7a64a2ac.zip
FRV: Do some cleanups
1. frv doesn't support SMP, remove the useless SMP bits. 2. frv has its own alloc_task_struct, so define __HAVE_ARCH_TASK_STRUCT_ALLOCATOR (I am not sure if frv should use generic alloc_task_struct().) Signed-off-by: WANG Cong <amwang@redhat.com> Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'arch/frv/include/asm/system.h')
-rw-r--r--arch/frv/include/asm/system.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/frv/include/asm/system.h b/arch/frv/include/asm/system.h
index 0a6d8d9ca45b..6c10fd2c626d 100644
--- a/arch/frv/include/asm/system.h
+++ b/arch/frv/include/asm/system.h
@@ -45,21 +45,12 @@ do { \
#define wmb() asm volatile ("membar" : : :"memory")
#define read_barrier_depends() do { } while (0)
-#ifdef CONFIG_SMP
-#define smp_mb() mb()
-#define smp_rmb() rmb()
-#define smp_wmb() wmb()
-#define smp_read_barrier_depends() read_barrier_depends()
-#define set_mb(var, value) \
- do { xchg(&var, (value)); } while (0)
-#else
#define smp_mb() barrier()
#define smp_rmb() barrier()
#define smp_wmb() barrier()
#define smp_read_barrier_depends() do {} while(0)
#define set_mb(var, value) \
do { var = (value); barrier(); } while (0)
-#endif
extern void die_if_kernel(const char *, ...) __attribute__((format(printf, 1, 2)));
extern void free_initmem(void);
OpenPOWER on IntegriCloud