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 /kernel/irq/manage.c | |
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 'kernel/irq/manage.c')
-rw-r--r-- | kernel/irq/manage.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 644e8d5fa367..850f030fa0c2 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -573,7 +573,9 @@ irq_thread_check_affinity(struct irq_desc *desc, struct irqaction *action) { } | |||
573 | */ | 573 | */ |
574 | static int irq_thread(void *data) | 574 | static int irq_thread(void *data) |
575 | { | 575 | { |
576 | struct sched_param param = { .sched_priority = MAX_USER_RT_PRIO/2, }; | 576 | static struct sched_param param = { |
577 | .sched_priority = MAX_USER_RT_PRIO/2, | ||
578 | }; | ||
577 | struct irqaction *action = data; | 579 | struct irqaction *action = data; |
578 | struct irq_desc *desc = irq_to_desc(action->irq); | 580 | struct irq_desc *desc = irq_to_desc(action->irq); |
579 | int wake, oneshot = desc->status & IRQ_ONESHOT; | 581 | int wake, oneshot = desc->status & IRQ_ONESHOT; |