sched: Add a generic notifier when a task struct is about to be freed
authorSan Mehat <san@google.com>
Thu, 6 May 2010 22:37:55 +0000 (15:37 -0700)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:31 +0000 (09:09 -0700)
commit39958f678c52fac3d522f345d61b9ffa1b4bfecb
treee01b8fb0077935862a16af6aec6190f79e3a2dde
parent29023ce8df1bbc9236dc1f632e9cdf77019dffb0
sched: Add a generic notifier when a task struct is about to be freed

This patch adds a notifier which can be used by subsystems that may
be interested in when a task has completely died and is about to
have it's last resource freed.

  The Android lowmemory killer uses this to determine when a task
it has killed has finally given up its goods.

Signed-off-by: San Mehat <san@google.com>
include/linux/sched.h
kernel/fork.c