[PATCH] Remove unused prepare_to_switch macro
Remove unused prepare_to_switch() macros. Signed-off-by: Hirokazu Takata <takata@linux-m32r.org> Cc: Mikael Starvik <starvik@axis.com> Cc: David Howells <dhowells@redhat.com> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Miles Bader <uclinux-v850@lsi.nec.co.jp> Cc: Chris Zankel <chris@zankel.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
04dfd0de4e
commit
bad7af550e
6 changed files with 0 additions and 13 deletions
|
@ -8,7 +8,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
extern struct task_struct *resume(struct task_struct *prev, struct task_struct *next, int);
|
extern struct task_struct *resume(struct task_struct *prev, struct task_struct *next, int);
|
||||||
#define prepare_to_switch() do { } while(0)
|
|
||||||
#define switch_to(prev,next,last) last = resume(prev,next, \
|
#define switch_to(prev,next,last) last = resume(prev,next, \
|
||||||
(int)&((struct task_struct *)0)->thread)
|
(int)&((struct task_struct *)0)->thread)
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,6 @@
|
||||||
|
|
||||||
struct thread_struct;
|
struct thread_struct;
|
||||||
|
|
||||||
#define prepare_to_switch() do { } while(0)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* switch_to(prev, next) should switch from task `prev' to `next'
|
* switch_to(prev, next) should switch from task `prev' to `next'
|
||||||
* `prev' will never be the same as `next'.
|
* `prev' will never be the same as `next'.
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
#include <linux/config.h> /* get configuration macros */
|
#include <linux/config.h> /* get configuration macros */
|
||||||
#include <linux/linkage.h>
|
#include <linux/linkage.h>
|
||||||
|
|
||||||
#define prepare_to_switch() do { } while(0)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* switch_to(n) should switch tasks to task ptr, first checking that
|
* switch_to(n) should switch tasks to task ptr, first checking that
|
||||||
* ptr isn't the current task, in which case it does nothing. This
|
* ptr isn't the current task, in which case it does nothing. This
|
||||||
|
|
|
@ -22,10 +22,6 @@
|
||||||
* `next' and `prev' should be struct task_struct, but it isn't always defined
|
* `next' and `prev' should be struct task_struct, but it isn't always defined
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONFIG_SMP
|
|
||||||
#define prepare_to_switch() do { } while(0)
|
|
||||||
#endif /* not CONFIG_SMP */
|
|
||||||
|
|
||||||
#define switch_to(prev, next, last) do { \
|
#define switch_to(prev, next, last) do { \
|
||||||
register unsigned long arg0 __asm__ ("r0") = (unsigned long)prev; \
|
register unsigned long arg0 __asm__ ("r0") = (unsigned long)prev; \
|
||||||
register unsigned long arg1 __asm__ ("r1") = (unsigned long)next; \
|
register unsigned long arg1 __asm__ ("r1") = (unsigned long)next; \
|
||||||
|
|
|
@ -18,8 +18,6 @@
|
||||||
#include <asm/ptrace.h>
|
#include <asm/ptrace.h>
|
||||||
|
|
||||||
|
|
||||||
#define prepare_to_switch() do { } while (0)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* switch_to(n) should switch tasks to task ptr, first checking that
|
* switch_to(n) should switch tasks to task ptr, first checking that
|
||||||
* ptr isn't the current task, in which case it does nothing.
|
* ptr isn't the current task, in which case it does nothing.
|
||||||
|
|
|
@ -111,8 +111,6 @@ extern void *_switch_to(void *last, void *next);
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
|
|
||||||
#define prepare_to_switch() do { } while(0)
|
|
||||||
|
|
||||||
#define switch_to(prev,next,last) \
|
#define switch_to(prev,next,last) \
|
||||||
do { \
|
do { \
|
||||||
clear_cpenable(); \
|
clear_cpenable(); \
|
||||||
|
|
Loading…
Reference in a new issue