diff options
author | Andrew Morton <[email protected]> | 2012-03-23 15:01:56 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-03-23 16:58:32 -0700 |
commit | b60f796c4ca72545327a069f12938360d833cce7 (patch) | |
tree | dea778b974b2a1396cd85a582557e273cb151b2c | |
parent | 4501980aae221ed8120dee3491f799ecd75187ad (diff) |
kernel/watchdog.c: add comment to watchdog() exit path
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]>
-rw-r--r-- | kernel/watchdog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/watchdog.c b/kernel/watchdog.c index a01cb03b045a..df30ee08bdd4 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c @@ -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, ¶m); return 0; |