aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>2010-10-20 19:01:12 -0400
committerIngo Molnar <mingo@elte.hu>2010-10-23 11:56:48 -0400
commitfe7de49f9d4e53f24ec9ef762a503f70b562341c (patch)
tree766b012c7199f12625bc909748175d9e37b0b87d /include/linux/sched.h
parentd4429f608abde89e8bc1e24b43cd503feb95c496 (diff)
sched: Make sched_param argument static in sched_setscheduler() callers
Andrew Morton pointed out almost all sched_setscheduler() callers are using fixed parameters and can be converted to static. It reduces runtime memory use a little. Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Reported-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: James Morris <jmorris@namei.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 0383601a927c..849c8670583d 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1942,9 +1942,10 @@ extern int task_nice(const struct task_struct *p);
1942extern int can_nice(const struct task_struct *p, const int nice); 1942extern int can_nice(const struct task_struct *p, const int nice);
1943extern int task_curr(const struct task_struct *p); 1943extern int task_curr(const struct task_struct *p);
1944extern int idle_cpu(int cpu); 1944extern int idle_cpu(int cpu);
1945extern int sched_setscheduler(struct task_struct *, int, struct sched_param *); 1945extern int sched_setscheduler(struct task_struct *, int,
1946 const struct sched_param *);
1946extern int sched_setscheduler_nocheck(struct task_struct *, int, 1947extern int sched_setscheduler_nocheck(struct task_struct *, int,
1947 struct sched_param *); 1948 const struct sched_param *);
1948extern struct task_struct *idle_task(int cpu); 1949extern struct task_struct *idle_task(int cpu);
1949extern struct task_struct *curr_task(int cpu); 1950extern struct task_struct *curr_task(int cpu);
1950extern void set_curr_task(int cpu, struct task_struct *p); 1951extern void set_curr_task(int cpu, struct task_struct *p);