diff options
author | 2020-09-22 16:42:42 -0700 | |
---|---|---|
committer | 2020-11-06 17:13:54 -0800 | |
commit | ab1b7880dec86bbdacd31a4c5cf104de4cf903f2 (patch) | |
tree | 00b58346317e403e0a707fe666a0c6aa25a01830 /drivers/usb/cdns3/cdns3-imx.c | |
parent | torture: Force weak-hashed pointers on console log (diff) | |
download | linux-dev-ab1b7880dec86bbdacd31a4c5cf104de4cf903f2.tar.xz linux-dev-ab1b7880dec86bbdacd31a4c5cf104de4cf903f2.zip |
rcutorture: Make stutter_wait() caller restore priority
Currently, stutter_wait() will happily spin waiting for the stutter
interval to end even if the caller is running at a real-time priority
level. This could starve normal-priority tasks for no good reason. This
commit therefore drops the calling task's priority to SCHED_OTHER MAX_NICE
if stutter_wait() needs to wait. But when it waits, stutter_wait()
returns true, which allows the caller to restore the priority if needed.
Callers that were already running at SCHED_OTHER MAX_NICE obviously
do not need any changes, but this commit also restores priority for
higher-priority callers.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions