aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <[email protected]>2017-06-20 14:45:46 -0700
committerPaul E. McKenney <[email protected]>2017-08-17 07:26:07 -0700
commit352eee1242ef62e18a475ef9278697dbd865969b (patch)
tree440f00092d574f433b255edf677dd75fa09c3833 /net/lapb/lapb_iface.c
parentc5ebe66ce774126b888617cab658f6556d23365e (diff)
swait: Add idle variants which don't contribute to load average
There are cases where folks are using an interruptible swait when using kthreads. This is rather confusing given you'd expect interruptible waits to be -- interruptible, but kthreads are not interruptible ! The reason for such practice though is to avoid having these kthreads contribute to the system load average. When systems are idle some kthreads may spend a lot of time blocking if using swait_event_timeout(). This would contribute to the system load average. On systems without preemption this would mean the load average of an idle system is bumped to 2 instead of 0. On systems with PREEMPT=y this would mean the load average of an idle system is bumped to 3 instead of 0. This adds proper API using TASK_IDLE to make such goals explicit and avoid confusion. Suggested-by: "Eric W. Biederman" <[email protected]> Acked-by: "Eric W. Biederman" <[email protected]> Tested-by: Paul E. McKenney <[email protected]> Signed-off-by: Luis R. Rodriguez <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions