[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)
commitd02c7a8cf208eb80a3ccbff40a6bebe8902af35a
treeb6e2a0393bf917e5e04be955d6c6d5384caa4dfa
parentb762f3ffb797c1281a38a1c82194534055fba5ec
[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