diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/irq/manage.c | 2 | ||||
| -rw-r--r-- | kernel/kthread.c | 2 | ||||
| -rw-r--r-- | kernel/softirq.c | 2 | ||||
| -rw-r--r-- | kernel/trace/trace_selftest.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 91a5fa25054..0caa59f747d 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
| @@ -577,7 +577,7 @@ irq_thread_check_affinity(struct irq_desc *desc, struct irqaction *action) { } | |||
| 577 | */ | 577 | */ |
| 578 | static int irq_thread(void *data) | 578 | static int irq_thread(void *data) |
| 579 | { | 579 | { |
| 580 | static struct sched_param param = { | 580 | static const struct sched_param param = { |
| 581 | .sched_priority = MAX_USER_RT_PRIO/2, | 581 | .sched_priority = MAX_USER_RT_PRIO/2, |
| 582 | }; | 582 | }; |
| 583 | struct irqaction *action = data; | 583 | struct irqaction *action = data; |
diff --git a/kernel/kthread.c b/kernel/kthread.c index 5355cfd44a3..c55afba990a 100644 --- a/kernel/kthread.c +++ b/kernel/kthread.c | |||
| @@ -148,7 +148,7 @@ struct task_struct *kthread_create(int (*threadfn)(void *data), | |||
| 148 | wait_for_completion(&create.done); | 148 | wait_for_completion(&create.done); |
| 149 | 149 | ||
| 150 | if (!IS_ERR(create.result)) { | 150 | if (!IS_ERR(create.result)) { |
| 151 | static struct sched_param param = { .sched_priority = 0 }; | 151 | static const struct sched_param param = { .sched_priority = 0 }; |
| 152 | va_list args; | 152 | va_list args; |
| 153 | 153 | ||
| 154 | va_start(args, namefmt); | 154 | va_start(args, namefmt); |
diff --git a/kernel/softirq.c b/kernel/softirq.c index d4d918a9188..c10150cb456 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c | |||
| @@ -853,7 +853,7 @@ static int __cpuinit cpu_callback(struct notifier_block *nfb, | |||
| 853 | cpumask_any(cpu_online_mask)); | 853 | cpumask_any(cpu_online_mask)); |
| 854 | case CPU_DEAD: | 854 | case CPU_DEAD: |
| 855 | case CPU_DEAD_FROZEN: { | 855 | case CPU_DEAD_FROZEN: { |
| 856 | static struct sched_param param = { | 856 | static const struct sched_param param = { |
| 857 | .sched_priority = MAX_RT_PRIO-1 | 857 | .sched_priority = MAX_RT_PRIO-1 |
| 858 | }; | 858 | }; |
| 859 | 859 | ||
diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c index 562c56e048f..659732eba07 100644 --- a/kernel/trace/trace_selftest.c +++ b/kernel/trace/trace_selftest.c | |||
| @@ -558,7 +558,7 @@ trace_selftest_startup_nop(struct tracer *trace, struct trace_array *tr) | |||
| 558 | static int trace_wakeup_test_thread(void *data) | 558 | static int trace_wakeup_test_thread(void *data) |
| 559 | { | 559 | { |
| 560 | /* Make this a RT thread, doesn't need to be too high */ | 560 | /* Make this a RT thread, doesn't need to be too high */ |
| 561 | static struct sched_param param = { .sched_priority = 5 }; | 561 | static const struct sched_param param = { .sched_priority = 5 }; |
| 562 | struct completion *x = data; | 562 | struct completion *x = data; |
| 563 | 563 | ||
| 564 | sched_setscheduler(current, SCHED_FIFO, ¶m); | 564 | sched_setscheduler(current, SCHED_FIFO, ¶m); |
