Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295153
b: refs/heads/master
c: 7a05c0f
h: refs/heads/master
i:
  295151: 6145372
v: v3
  • Loading branch information
Michal Hocko authored and Linus Torvalds committed Mar 23, 2012
1 parent 1cdec0a commit bae5bf1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 397a21f24d455982a8a6f9bc11b5f3326ce3c6ef
refs/heads/master: 7a05c0f7bbae91d08b7d0acf016fdb42dbc912ae
7 changes: 3 additions & 4 deletions trunk/kernel/watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,9 @@ static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer)
*/
static int watchdog(void *unused)
{
struct sched_param param = { .sched_priority = MAX_RT_PRIO-1 };
struct sched_param param = { .sched_priority = 0 };
struct hrtimer *hrtimer = &__raw_get_cpu_var(watchdog_hrtimer);

sched_setscheduler(current, SCHED_FIFO, &param);

/* initialize timestamp */
__touch_watchdog();

Expand All @@ -350,7 +348,6 @@ static int watchdog(void *unused)
set_current_state(TASK_INTERRUPTIBLE);
}
__set_current_state(TASK_RUNNING);
param.sched_priority = 0;
sched_setscheduler(current, SCHED_NORMAL, &param);
return 0;
}
Expand Down Expand Up @@ -439,6 +436,7 @@ static int watchdog_enable(int cpu)

/* create the watchdog thread */
if (!p) {
struct sched_param param = { .sched_priority = MAX_RT_PRIO-1 };
p = kthread_create_on_node(watchdog, NULL, cpu_to_node(cpu), "watchdog/%d", cpu);
if (IS_ERR(p)) {
printk(KERN_ERR "softlockup watchdog for %i failed\n", cpu);
Expand All @@ -450,6 +448,7 @@ static int watchdog_enable(int cpu)
}
goto out;
}
sched_setscheduler(p, SCHED_FIFO, &param);
kthread_bind(p, cpu);
per_cpu(watchdog_touch_ts, cpu) = 0;
per_cpu(softlockup_watchdog, cpu) = p;
Expand Down

0 comments on commit bae5bf1

Please sign in to comment.