Skip to content

Commit

Permalink
kernel/watchdog.c: add comment to watchdog() exit path
Browse files Browse the repository at this point in the history
Revelation from Peter.

Cc: Peter Zijlstra <[email protected]>
Cc: Don Zickus <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
akpm00 authored and torvalds committed Mar 23, 2012
1 parent 4501980 commit b60f796
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,10 @@ static int watchdog(void *unused)

set_current_state(TASK_INTERRUPTIBLE);
}
/*
* Drop the policy/priority elevation during thread exit to avoid a
* scheduling latency spike.
*/
__set_current_state(TASK_RUNNING);
sched_setscheduler(current, SCHED_NORMAL, &param);
return 0;
Expand Down

0 comments on commit b60f796

Please sign in to comment.