diff options
author | KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> | 2010-10-20 19:01:12 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-10-23 11:56:48 -0400 |
commit | fe7de49f9d4e53f24ec9ef762a503f70b562341c (patch) | |
tree | 766b012c7199f12625bc909748175d9e37b0b87d /include | |
parent | d4429f608abde89e8bc1e24b43cd503feb95c496 (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')
-rw-r--r-- | include/linux/sched.h | 5 |
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); | |||
1942 | extern int can_nice(const struct task_struct *p, const int nice); | 1942 | extern int can_nice(const struct task_struct *p, const int nice); |
1943 | extern int task_curr(const struct task_struct *p); | 1943 | extern int task_curr(const struct task_struct *p); |
1944 | extern int idle_cpu(int cpu); | 1944 | extern int idle_cpu(int cpu); |
1945 | extern int sched_setscheduler(struct task_struct *, int, struct sched_param *); | 1945 | extern int sched_setscheduler(struct task_struct *, int, |
1946 | const struct sched_param *); | ||
1946 | extern int sched_setscheduler_nocheck(struct task_struct *, int, | 1947 | extern int sched_setscheduler_nocheck(struct task_struct *, int, |
1947 | struct sched_param *); | 1948 | const struct sched_param *); |
1948 | extern struct task_struct *idle_task(int cpu); | 1949 | extern struct task_struct *idle_task(int cpu); |
1949 | extern struct task_struct *curr_task(int cpu); | 1950 | extern struct task_struct *curr_task(int cpu); |
1950 | extern void set_curr_task(int cpu, struct task_struct *p); | 1951 | extern void set_curr_task(int cpu, struct task_struct *p); |