|
@@ -321,7 +321,7 @@ static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer)
|
|
*/
|
|
*/
|
|
static int watchdog(void *unused)
|
|
static int watchdog(void *unused)
|
|
{
|
|
{
|
|
- static struct sched_param param = { .sched_priority = MAX_RT_PRIO-1 };
|
|
|
|
|
|
+ struct sched_param param = { .sched_priority = MAX_RT_PRIO-1 };
|
|
struct hrtimer *hrtimer = &__raw_get_cpu_var(watchdog_hrtimer);
|
|
struct hrtimer *hrtimer = &__raw_get_cpu_var(watchdog_hrtimer);
|
|
|
|
|
|
sched_setscheduler(current, SCHED_FIFO, ¶m);
|
|
sched_setscheduler(current, SCHED_FIFO, ¶m);
|
|
@@ -350,7 +350,8 @@ static int watchdog(void *unused)
|
|
set_current_state(TASK_INTERRUPTIBLE);
|
|
set_current_state(TASK_INTERRUPTIBLE);
|
|
}
|
|
}
|
|
__set_current_state(TASK_RUNNING);
|
|
__set_current_state(TASK_RUNNING);
|
|
-
|
|
|
|
|
|
+ param.sched_priority = 0;
|
|
|
|
+ sched_setscheduler(current, SCHED_NORMAL, ¶m);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|