diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2009-01-07 16:14:38 +0100 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2009-01-07 16:14:38 +0100 |
commit | cc92b870a779500f444419f27bf73c6c7660ff9c (patch) | |
tree | b82430fe2c0aaa72ea4ebdbc21fb1f2ce8cca7c2 /arch/blackfin/include/asm/system.h | |
parent | Blackfin arch: merge kgdb test code using common CONFIG_KGDB_TESTS (diff) | |
download | linux-cc92b870a779500f444419f27bf73c6c7660ff9c.tar.xz linux-cc92b870a779500f444419f27bf73c6c7660ff9c.zip |
Blackfin arch: disable pthread stack check for SMP at runtime
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/include/asm/system.h')
-rw-r--r-- | arch/blackfin/include/asm/system.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/system.h b/arch/blackfin/include/asm/system.h index aa7d87b62b28..812e6e6e2cee 100644 --- a/arch/blackfin/include/asm/system.h +++ b/arch/blackfin/include/asm/system.h @@ -197,6 +197,7 @@ static inline unsigned long __xchg(unsigned long x, volatile void *ptr, asmlinkage struct task_struct *resume(struct task_struct *prev, struct task_struct *next); +#ifndef CONFIG_SMP #define switch_to(prev,next,last) \ do { \ memcpy (&task_thread_info(prev)->l1_task_info, L1_SCRATCH_TASK_INFO, \ @@ -205,5 +206,11 @@ do { \ sizeof *L1_SCRATCH_TASK_INFO); \ (last) = resume (prev, next); \ } while (0) +#else +#define switch_to(prev, next, last) \ +do { \ + (last) = resume(prev, next); \ +} while (0) +#endif #endif /* _BLACKFIN_SYSTEM_H */ |