Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: 97bf6af1f928216fd6c5a66e8a57bfa95a659672 authored by Linus Torvalds on 21 December 2014, 01:08:50 UTC
Linux 3.19-rc1
Tip revision: 97bf6af
switch_to.h
/*
 * 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 */
back to top