]> 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>
Mon, 19 Nov 2012 01:15:36 +0000 (02:15 +0100)
commit8d6adf0f92d799197430e02c9934479d691f9815
tree35d8ca84670195ade5586cee7c2c9b0a7f9aced1
parent84b708bae490ffecb7d58d93bd3ad5ccd8424fa7
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: Andrea Arcangeli <aarcange@redhat.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Hugh Dickins <hughd@google.com>
Cc: Thomas Gleixner <tglx@linutronix.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/memory.c