aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze/include/asm/switch_to.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2012-03-28 18:30:02 +0100
committerDavid Howells <dhowells@redhat.com>2012-03-28 18:30:02 +0100
commitc40d04df152a1111c5bbcb632278394dabd2b73d (patch)
tree84e9426bea45852e2333308116a69b5743655ee3 /arch/microblaze/include/asm/switch_to.h
parentDisintegrate asm/system.h for M68K (diff)
downloadlinux-dev-c40d04df152a1111c5bbcb632278394dabd2b73d.tar.xz
linux-dev-c40d04df152a1111c5bbcb632278394dabd2b73d.zip
Disintegrate asm/system.h for Microblaze
Disintegrate asm/system.h for Microblaze. Not compiled. Signed-off-by: David Howells <dhowells@redhat.com> cc: microblaze-uclinux@itee.uq.edu.au
Diffstat (limited to 'arch/microblaze/include/asm/switch_to.h')
-rw-r--r--arch/microblaze/include/asm/switch_to.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/switch_to.h b/arch/microblaze/include/asm/switch_to.h
new file mode 100644
index 000000000000..f45baa2c5e09
--- /dev/null
+++ b/arch/microblaze/include/asm/switch_to.h
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2006 Atmark Techno, Inc.
+ *
+ * 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.
+ */
+
+#ifndef _ASM_MICROBLAZE_SWITCH_TO_H
+#define _ASM_MICROBLAZE_SWITCH_TO_H
+
+struct task_struct;
+struct thread_info;
+
+extern struct task_struct *_switch_to(struct thread_info *prev,
+ struct thread_info *next);
+
+#define switch_to(prev, next, last) \
+ do { \
+ (last) = _switch_to(task_thread_info(prev), \
+ task_thread_info(next)); \
+ } while (0)
+
+#endif /* _ASM_MICROBLAZE_SWITCH_TO_H */