]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: page_alloc: use jump labels to avoid checking number_of_cpusets
authorMel Gorman <mgorman@suse.de>
Wed, 14 May 2014 00:02:16 +0000 (10:02 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 May 2014 00:02:16 +0000 (10:02 +1000)
commit95d217015fd396312627a3d5ad4e20d2bd6870cc
treec49cf32a072a511337807afb545173eb75931fc8
parent985575c532f658ccddd7e2b96e6a6e0ea8061fa5
mm: page_alloc: use jump labels to avoid checking number_of_cpusets

If cpusets are not in use then we still check a global variable on every
page allocation.  Use jump labels to avoid the overhead.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Rik van Riel <riel@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Jan Kara <jack@suse.cz>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Hugh Dickins <hughd@google.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Theodore Ts'o <tytso@mit.edu>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/cpuset.h
kernel/cpuset.c
mm/page_alloc.c