]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] cpuset: remove test for null cpuset from alloc code path
authorPaul Jackson <pj@sgi.com>
Sun, 8 Jan 2006 09:02:01 +0000 (01:02 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 9 Jan 2006 04:13:44 +0000 (20:13 -0800)
commit5bbd8e84c0b2de717c5cb36db0bcce6bd46f198f
tree3058c7c79aedb11e7013f5faca34eb07e9a761bd
parent93bd8d0b63a8a0586798f5e24436f247335ef26e
[PATCH] cpuset: remove test for null cpuset from alloc code path

Remove a couple of more lines of code from the cpuset hooks in the page
allocation code path.

There was a check for a NULL cpuset pointer in the routine
cpuset_update_task_memory_state() that was only needed during system boot,
after the memory subsystem was initialized, before the cpuset subsystem was
initialized, to catch a NULL task->cpuset pointer.

Add a cpuset_init_early() routine, just before the mem_init() call in
init/main.c, that sets up just enough of the init tasks cpuset structure to
render cpuset_update_task_memory_state() calls harmless.

Signed-off-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/cpuset.h
init/main.c
kernel/cpuset.c