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)
committerSan Mehat <san@google.com>
Thu, 6 May 2010 22:51:00 +0000 (15:51 -0700)
commit9e6cb2f4dbe36af72558f60f418cc03df0173628
tree70ffc830bf820d070eacec40719399dcc95bc338
parent6bdee543a3281e7d53e2902fedae529ced5e0c7e
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