mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 12:14:01 +08:00
f9aa7e1882
Disintegrate asm/system.h for Xtensa. Signed-off-by: David Howells <dhowells@redhat.com> cc: Chris Zankel <chris@zankel.net>
23 lines
601 B
C
23 lines
601 B
C
/*
|
|
* 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 */
|