Files
OrangePi_CM5/include/linux
Peter Zijlstra 80ed87c8a9 sched/wait: Introduce TASK_NOLOAD and TASK_IDLE
Currently people use TASK_INTERRUPTIBLE to idle kthreads and wait for
'work' because TASK_UNINTERRUPTIBLE contributes to the loadavg. Having
all idle kthreads contribute to the loadavg is somewhat silly.

Now mostly this works OK, because kthreads have all their signals
masked. However there's a few sites where this is causing problems and
TASK_UNINTERRUPTIBLE should be used, except for that loadavg issue.

This patch adds TASK_NOLOAD which, when combined with
TASK_UNINTERRUPTIBLE avoids the loadavg accounting.

As most of imagined usage sites are loops where a thread wants to
idle, waiting for work, a helper TASK_IDLE is introduced.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Julian Anastasov <ja@ssi.bg>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: NeilBrown <neilb@suse.de>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2015-05-19 08:39:18 +02:00
..
…
2015-03-29 16:17:10 +01:00
…
…
2015-04-07 11:17:34 +02:00
…
…
…
…
…
2015-03-25 20:28:11 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-04-17 09:03:53 -04:00
…
2015-05-04 13:09:55 -06:00
2015-04-17 08:31:12 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-03-11 15:56:59 -07:00
…
…
…
…
…
…
…
…
…
2015-04-16 12:33:51 +09:30
…
…
…
…
…
…
…
2015-02-12 18:54:15 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-03-02 16:43:41 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-05-14 17:55:51 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-03-16 21:45:54 +11:00
…
2015-04-03 16:18:02 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-02-13 21:21:36 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-05-14 17:55:51 -07:00
…
…
…
2015-04-14 16:49:05 -07:00
…
2015-03-25 11:44:52 +01:00
…
…
2015-04-17 09:04:07 -04:00
…
…
2015-03-31 12:04:12 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-04-23 14:36:28 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
2015-03-11 17:56:28 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-04-12 21:03:31 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-02-17 14:34:52 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-02-24 08:44:16 +01:00
2015-03-26 18:18:20 +01:00
…
…
…
…
…
…
…
…
…
…
2015-04-25 15:49:49 -04:00
2015-02-13 21:21:41 -08:00
…
…
…
…
2015-03-11 21:55:28 -04:00
2015-04-11 15:53:35 -04:00
…
…
…
…
…
…
…
…
…
2015-02-13 21:21:35 -08:00
…
…
…
…
…
…
2015-03-25 13:28:58 +01:00
…
…
…
…
…
…
2015-04-29 17:10:37 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
2015-05-10 19:26:37 +02:00
…
…
2015-04-11 22:29:44 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2015-03-24 09:48:14 -07:00
…
…
…
…
…
…
…
…
2015-04-15 16:35:20 -07:00
…