aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamir Bellabes <sam@synack.fr>2011-05-11 12:18:05 -0400
committerIngo Molnar <mingo@elte.hu>2011-05-12 03:36:37 -0400
commit3e51e3edfd81bfd9853ad7de91167e4ce33d0fe7 (patch)
tree777d871949911f3e79a5b94545a7b6a55bdc2259
parent9cb5baba5e3acba0994ad899ee908799104c9965 (diff)
sched: Remove unused parameters from sched_fork() and wake_up_new_task()
sched_fork() and wake_up_new_task() are defined with a parameter 'unsigned long clone_flags', which is unused. This patch removes the parameters. Signed-off-by: Samir Bellabes <sam@synack.fr> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1305130685-1047-1-git-send-email-sam@synack.fr Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--include/linux/sched.h5
-rw-r--r--kernel/fork.c4
-rw-r--r--kernel/sched.c4
3 files changed, 6 insertions, 7 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 6b4280b23ee6..12211e1666e2 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -2051,14 +2051,13 @@ extern void xtime_update(unsigned long ticks);
2051 2051
2052extern int wake_up_state(struct task_struct *tsk, unsigned int state); 2052extern int wake_up_state(struct task_struct *tsk, unsigned int state);
2053extern int wake_up_process(struct task_struct *tsk); 2053extern int wake_up_process(struct task_struct *tsk);
2054extern void wake_up_new_task(struct task_struct *tsk, 2054extern void wake_up_new_task(struct task_struct *tsk);
2055 unsigned long clone_flags);
2056#ifdef CONFIG_SMP 2055#ifdef CONFIG_SMP
2057 extern void kick_process(struct task_struct *tsk); 2056 extern void kick_process(struct task_struct *tsk);
2058#else 2057#else
2059 static inline void kick_process(struct task_struct *tsk) { } 2058 static inline void kick_process(struct task_struct *tsk) { }
2060#endif 2059#endif
2061extern void sched_fork(struct task_struct *p, int clone_flags); 2060extern void sched_fork(struct task_struct *p);
2062extern void sched_dead(struct task_struct *p); 2061extern void sched_dead(struct task_struct *p);
2063 2062
2064extern void proc_caches_init(void); 2063extern void proc_caches_init(void);
diff --git a/kernel/fork.c b/kernel/fork.c
index aca62871a4f9..2b44d82b8237 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1152,7 +1152,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
1152#endif 1152#endif
1153 1153
1154 /* Perform scheduler related setup. Assign this task to a CPU. */ 1154 /* Perform scheduler related setup. Assign this task to a CPU. */
1155 sched_fork(p, clone_flags); 1155 sched_fork(p);
1156 1156
1157 retval = perf_event_init_task(p); 1157 retval = perf_event_init_task(p);
1158 if (retval) 1158 if (retval)
@@ -1463,7 +1463,7 @@ long do_fork(unsigned long clone_flags,
1463 */ 1463 */
1464 p->flags &= ~PF_STARTING; 1464 p->flags &= ~PF_STARTING;
1465 1465
1466 wake_up_new_task(p, clone_flags); 1466 wake_up_new_task(p);
1467 1467
1468 tracehook_report_clone_complete(trace, regs, 1468 tracehook_report_clone_complete(trace, regs,
1469 clone_flags, nr, p); 1469 clone_flags, nr, p);
diff --git a/kernel/sched.c b/kernel/sched.c
index da9338150484..f9778c0d91e2 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -2741,7 +2741,7 @@ static void __sched_fork(struct task_struct *p)
2741/* 2741/*
2742 * fork()/clone()-time setup: 2742 * fork()/clone()-time setup:
2743 */ 2743 */
2744void sched_fork(struct task_struct *p, int clone_flags) 2744void sched_fork(struct task_struct *p)
2745{ 2745{
2746 unsigned long flags; 2746 unsigned long flags;
2747 int cpu = get_cpu(); 2747 int cpu = get_cpu();
@@ -2823,7 +2823,7 @@ void sched_fork(struct task_struct *p, int clone_flags)
2823 * that must be done for every newly created context, then puts the task 2823 * that must be done for every newly created context, then puts the task
2824 * on the runqueue and wakes it. 2824 * on the runqueue and wakes it.
2825 */ 2825 */
2826void wake_up_new_task(struct task_struct *p, unsigned long clone_flags) 2826void wake_up_new_task(struct task_struct *p)
2827{ 2827{
2828 unsigned long flags; 2828 unsigned long flags;
2829 struct rq *rq; 2829 struct rq *rq;