]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] sched: add above_background_load() function
authorCon Kolivas <kernel@kolivas.org>
Thu, 26 Jul 2007 11:40:43 +0000 (13:40 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 26 Jul 2007 11:40:43 +0000 (13:40 +0200)
commit613b8436a189d80a3d582f1c00bba38a627b2862
treeb6e2a0393bf917e5e04be955d6c6d5384caa4dfa
parentd0cf00f3bc9f57b9c355ac6a14cf633be278ce27
[PATCH] sched: add above_background_load() function

Add an above_background_load() function which can be used by other
subsystems to detect if there is anything besides niced tasks running.

Place it in sched.h to allow it to be compiled out if not used.

Unused for now, but it is a useful hint to the IO scheduler and to
swap-prefetch.

Signed-off-by: Con Kolivas <kernel@kolivas.org>
Cc: Peter Williams <pwil3058@bigpond.net.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/sched.h