]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm, page_owner: convert page_owner_inited to static key
authorVlastimil Babka <vbabka@suse.cz>
Tue, 9 Feb 2016 23:12:18 +0000 (10:12 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 9 Feb 2016 23:12:18 +0000 (10:12 +1100)
commit07b7977ffd50144a1d7a41132049b2c906a3e165
treeea74026d36cedf9868f32c4e8cf0ed38ecffcb33
parent4b28067c36dfe3911e7fe0c451cc84a89e3b49ee
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>
Documentation/vm/page_owner.txt
include/linux/page_owner.h
mm/page_owner.c
mm/vmstat.c