]> 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>
Thu, 22 May 2014 00:43:18 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:18 +0000 (10:43 +1000)
commit84f4849eebd1310fcdc0e3a197267490793517a1
tree26cba37dd0d0f6d1bcc630baeb7bf77a30d37b04
parent7736eae3fe59eb70016a54ef5c755fb4bb9bf656
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