Commit b60f796c4ca72545327a069f12938360d833cce7

Authored by Andrew Morton
Committed by Linus Torvalds
1 parent 4501980aae

kernel/watchdog.c: add comment to watchdog() exit path

Revelation from Peter.

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@tglx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

... ... @@ -349,6 +349,10 @@
349 349  
350 350 set_current_state(TASK_INTERRUPTIBLE);
351 351 }
  352 + /*
  353 + * Drop the policy/priority elevation during thread exit to avoid a
  354 + * scheduling latency spike.
  355 + */
352 356 __set_current_state(TASK_RUNNING);
353 357 sched_setscheduler(current, SCHED_NORMAL, &param);
354 358 return 0;