diff options
author | David Howells <dhowells@redhat.com> | 2012-03-28 21:30:03 +0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2012-03-28 21:30:03 +0400 |
commit | f9aa7e1882f3ceec919b30f64a2ce6e66a2571b1 (patch) | |
tree | d9b1e03d15102703722e39883ac719be52615e1a /arch/xtensa/include/asm/switch_to.h | |
parent | 8978bfd2288adaa24d39fa15f57eb9e24ffeca12 (diff) | |
download | linux-f9aa7e1882f3ceec919b30f64a2ce6e66a2571b1.tar.xz |
Disintegrate asm/system.h for Xtensa
Disintegrate asm/system.h for Xtensa.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa/include/asm/switch_to.h')
-rw-r--r-- | arch/xtensa/include/asm/switch_to.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/switch_to.h b/arch/xtensa/include/asm/switch_to.h new file mode 100644 index 000000000000..6b73bf0eb1ff --- /dev/null +++ b/arch/xtensa/include/asm/switch_to.h @@ -0,0 +1,22 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + * + * Copyright (C) 2001 - 2005 Tensilica Inc. + */ + +#ifndef _XTENSA_SWITCH_TO_H +#define _XTENSA_SWITCH_TO_H + +/* * switch_to(n) should switch tasks to task nr n, first + * checking that n isn't the current task, in which case it does nothing. + */ +extern void *_switch_to(void *last, void *next); + +#define switch_to(prev,next,last) \ +do { \ + (last) = _switch_to(prev, next); \ +} while(0) + +#endif /* _XTENSA_SWITCH_TO_H */ |