diff options
author | Trilok Soni <tsoni@codeaurora.org> | 2016-04-20 18:12:51 -0700 |
---|---|---|
committer | Jeevan Shriram <jshriram@codeaurora.org> | 2016-05-03 15:53:55 -0700 |
commit | bf6ceddd568af81b38dcd77c502db20601c89c90 (patch) | |
tree | 4e618ba01e3437df8c93beac628bfeeabe4eb4d9 /mm | |
parent | 2dcb2315bb7b1730e0379670f5c2580bf4f06133 (diff) |
mm/page_owner: ask users about default setting of PAGE_OWNER
Since this commit 48c96a3685795 ("mm/page_owner: keep track
of page owners") doesn't enable the page_owner by default
even though CONFIG_PAGE_OWNER is enabled.
Add configuration option CONFIG_PAGE_OWNER_ENABLE_DEFAULT to
allow user to enable it by default through the defconfig file.
CRs-Fixed: 1006743
Change-Id: I9b565a34e2068bf575974eaf3dc9f7820bdd7a96
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page_owner.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mm/page_owner.c b/mm/page_owner.c index 983c3a10fa07..45cccaa1ce32 100644 --- a/mm/page_owner.c +++ b/mm/page_owner.c @@ -7,7 +7,8 @@ #include <linux/page_owner.h> #include "internal.h" -static bool page_owner_disabled = true; +static bool page_owner_disabled = + !IS_ENABLED(CONFIG_PAGE_OWNER_ENABLE_DEFAULT); bool page_owner_inited __read_mostly; static void init_early_allocated_pages(void); @@ -20,6 +21,9 @@ static int early_page_owner_param(char *buf) if (strcmp(buf, "on") == 0) page_owner_disabled = false; + if (strcmp(buf, "off") == 0) + page_owner_disabled = true; + return 0; } early_param("page_owner", early_page_owner_param); |