|
@@ -349,6 +349,10 @@ static int watchdog(void *unused)
|
|
|
|
|
|
set_current_state(TASK_INTERRUPTIBLE);
|
|
set_current_state(TASK_INTERRUPTIBLE);
|
|
}
|
|
}
|
|
|
|
+ /*
|
|
|
|
+ * Drop the policy/priority elevation during thread exit to avoid a
|
|
|
|
+ * scheduling latency spike.
|
|
|
|
+ */
|
|
__set_current_state(TASK_RUNNING);
|
|
__set_current_state(TASK_RUNNING);
|
|
sched_setscheduler(current, SCHED_NORMAL, ¶m);
|
|
sched_setscheduler(current, SCHED_NORMAL, ¶m);
|
|
return 0;
|
|
return 0;
|