]> git.baikalelectronics.ru Git - kernel.git/commit
mm, page_owner: convert page_owner_inited to static key
authorVlastimil Babka <vbabka@suse.cz>
Tue, 15 Mar 2016 21:56:12 +0000 (14:56 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Mar 2016 23:55:16 +0000 (16:55 -0700)
commitd44f6c40ae6b0fb929d4bff0a306ddb9fa6a6eb6
tree75048a0e7ff2648c59b1a23640e202653fa1aa27
parent5dffa522b8d602b26f6b1a03526c3648caac42b5
mm, page_owner: convert page_owner_inited to static key

CONFIG_PAGE_OWNER attempts to impose negligible runtime overhead when
enabled during compilation, but not actually enabled during runtime by
boot param page_owner=on.  This overhead can be further reduced using
the static key mechanism, which this patch does.

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Sasha Levin <sasha.levin@oracle.com>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/vm/page_owner.txt
include/linux/page_owner.h
mm/page_owner.c
mm/vmstat.c