Commit | Line | Data |
---|---|---|
c40d04df DH |
1 | /* |
2 | * Copyright (C) 2006 Atmark Techno, Inc. | |
3 | * | |
4 | * This file is subject to the terms and conditions of the GNU General Public | |
5 | * License. See the file "COPYING" in the main directory of this archive | |
6 | * for more details. | |
7 | */ | |
8 | ||
9 | #ifndef _ASM_MICROBLAZE_SWITCH_TO_H | |
10 | #define _ASM_MICROBLAZE_SWITCH_TO_H | |
11 | ||
12 | struct task_struct; | |
13 | struct thread_info; | |
14 | ||
15 | extern struct task_struct *_switch_to(struct thread_info *prev, | |
16 | struct thread_info *next); | |
17 | ||
18 | #define switch_to(prev, next, last) \ | |
19 | do { \ | |
20 | (last) = _switch_to(task_thread_info(prev), \ | |
21 | task_thread_info(next)); \ | |
22 | } while (0) | |
23 | ||
24 | #endif /* _ASM_MICROBLAZE_SWITCH_TO_H */ |