diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/watchdog.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/watchdog.c b/kernel/watchdog.c index e952a1394d26..d680381b0e9c 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c | |||
| @@ -321,7 +321,7 @@ static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer) | |||
| 321 | */ | 321 | */ |
| 322 | static int watchdog(void *unused) | 322 | static int watchdog(void *unused) |
| 323 | { | 323 | { |
| 324 | static struct sched_param param = { .sched_priority = MAX_RT_PRIO-1 }; | 324 | struct sched_param param = { .sched_priority = MAX_RT_PRIO-1 }; |
| 325 | struct hrtimer *hrtimer = &__raw_get_cpu_var(watchdog_hrtimer); | 325 | struct hrtimer *hrtimer = &__raw_get_cpu_var(watchdog_hrtimer); |
| 326 | 326 | ||
| 327 | sched_setscheduler(current, SCHED_FIFO, ¶m); | 327 | sched_setscheduler(current, SCHED_FIFO, ¶m); |
| @@ -350,7 +350,8 @@ static int watchdog(void *unused) | |||
| 350 | set_current_state(TASK_INTERRUPTIBLE); | 350 | set_current_state(TASK_INTERRUPTIBLE); |
| 351 | } | 351 | } |
| 352 | __set_current_state(TASK_RUNNING); | 352 | __set_current_state(TASK_RUNNING); |
| 353 | 353 | param.sched_priority = 0; | |
| 354 | sched_setscheduler(current, SCHED_NORMAL, ¶m); | ||
| 354 | return 0; | 355 | return 0; |
| 355 | } | 356 | } |
| 356 | 357 | ||
