Commit 6295088c authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Linus Torvalds

[PATCH] remove *_segments() dummy functions again

Last November Linus applied a patch to remove the now-unused
*_segments() functions from all architectures ...  but some of the newer
architectures escaped and still have them.
parent a64bf26a
...@@ -100,10 +100,6 @@ struct task_struct; ...@@ -100,10 +100,6 @@ struct task_struct;
/* Free all resources held by a thread. */ /* Free all resources held by a thread. */
extern void release_thread(struct task_struct *); extern void release_thread(struct task_struct *);
/* Copy and release all segment info associated with a VM */
#define copy_segments(tsk, mm) do { } while (0)
#define release_segments(mm) do { } while (0)
unsigned long get_wchan(struct task_struct *p); unsigned long get_wchan(struct task_struct *p);
#define cpu_relax() barrier() #define cpu_relax() barrier()
......
...@@ -89,9 +89,6 @@ static inline void release_thread(struct task_struct *dead_task) ...@@ -89,9 +89,6 @@ static inline void release_thread(struct task_struct *dead_task)
extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags); extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);
#define copy_segments(tsk, mm) do { } while (0)
#define release_segments(mm) do { } while (0)
#define forget_segments() do { } while (0)
#define prepare_to_copy(tsk) do { } while (0) #define prepare_to_copy(tsk) do { } while (0)
/* /*
......
...@@ -280,8 +280,6 @@ extern void prepare_to_copy(struct task_struct *tsk); ...@@ -280,8 +280,6 @@ extern void prepare_to_copy(struct task_struct *tsk);
*/ */
extern long kernel_thread(int (*fn)(void *), void * arg, unsigned long flags); extern long kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);
static inline void release_segments(struct mm_struct *mm) { }
/* /*
* Return saved PC of a blocked thread. * Return saved PC of a blocked thread.
* What is this good for? it will be always the scheduler or ret_from_fork. * What is this good for? it will be always the scheduler or ret_from_fork.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment