]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sched, numa, mm: Add last_cpu to page flags
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Sun, 11 Nov 2012 14:13:43 +0000 (15:13 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 13 Nov 2012 17:09:20 +0000 (18:09 +0100)
commit7c6db2562b92551d0cb12cc1ea44a257277da294
treef4a76079d369e9765b35f78860ab5f106c64567b
parentc067b866b9d21144b181e6f33128cfa9c517d977
sched, numa, mm: Add last_cpu to page flags

Introduce a per-page last_cpu field, fold this into the struct
page::flags field whenever possible.

The unlikely/rare 32bit NUMA configs will likely grow the page-frame.

[ Completely dropping 32bit support for CONFIG_NUMA_BALANCING would simplify
  things, but it would also remove the warning if we grow enough 64bit
  only page-flags to push the last-cpu out. ]

Suggested-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/mm.h
include/linux/mm_types.h
include/linux/mmzone.h
include/linux/page-flags-layout.h [new file with mode: 0644]
kernel/bounds.c
mm/huge_memory.c
mm/memory.c