diff --git a/mm/cma_sysfs.c b/mm/cma_sysfs.c index eb2f39caff59..d552b2a1506b 100644 --- a/mm/cma_sysfs.c +++ b/mm/cma_sysfs.c @@ -8,9 +8,12 @@ #include #include #include +#include #include "cma.h" +static bool experimental; + #define CMA_ATTR_RO(_name) \ static struct kobj_attribute _name##_attr = __ATTR_RO(_name) @@ -77,6 +80,9 @@ static int __init cma_sysfs_init(void) struct cma *cma; int i, err; + if (!experimental) + return 0; + cma_kobj_root = kobject_create_and_add("cma", mm_kobj); if (!cma_kobj_root) return -ENOMEM; @@ -110,3 +116,5 @@ static int __init cma_sysfs_init(void) return err; } subsys_initcall(cma_sysfs_init); + +module_param(experimental, bool, 0400);