Paul Jackson cf2a473c40 [PATCH] cpuset: combine refresh_mems and update_mems
The important code paths through alloc_pages_current() and alloc_page_vma(),
by which most kernel page allocations go, both called
cpuset_update_current_mems_allowed(), which in turn called refresh_mems().
-Both- of these latter two routines did a tasklock, got the tasks cpuset
pointer, and checked for out of date cpuset->mems_generation.

That was a silly duplication of code and waste of CPU cycles on an important
code path.

Consolidated those two routines into a single routine, called
cpuset_update_task_memory_state(), since it updates more than just
mems_allowed.

Changed all callers of either routine to call the new consolidated routine.

Signed-off-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-01-08 20:13:43 -08:00
..
2006-01-06 08:33:49 -08:00
2005-12-12 08:57:43 -08:00
2005-10-28 08:16:49 -07:00
2006-01-08 20:13:40 -08:00
2006-01-08 20:13:43 -08:00
2005-10-30 17:37:32 -08:00
2005-10-29 21:40:42 -07:00
2005-10-08 15:00:57 -07:00
2005-10-30 17:37:17 -08:00
2006-01-06 08:33:53 -08:00
2006-01-08 20:13:40 -08:00
2006-01-08 20:13:40 -08:00
2006-01-08 20:13:40 -08:00
2005-12-12 08:57:42 -08:00
2005-10-30 17:37:25 -08:00
2006-01-08 20:12:40 -08:00