]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - kernel/sysctl.c
hugetlb: Add hugetlb_dynamic_pool sysctl
[linux-2.6.git] / kernel / sysctl.c
index ec14aa8ac51fc83b820330af559077e1cc2cf797..96efbb859997e5b98be42f10c2bda73a920e7882 100644 (file)
@@ -880,6 +880,14 @@ static ctl_table vm_table[] = {
                .mode           = 0644,
                .proc_handler   = &hugetlb_treat_movable_handler,
        },
                .mode           = 0644,
                .proc_handler   = &hugetlb_treat_movable_handler,
        },
+       {
+               .ctl_name       = CTL_UNNUMBERED,
+               .procname       = "hugetlb_dynamic_pool",
+               .data           = &hugetlb_dynamic_pool,
+               .maxlen         = sizeof(hugetlb_dynamic_pool),
+               .mode           = 0644,
+               .proc_handler   = &proc_dointvec,
+       },
 #endif
        {
                .ctl_name       = VM_LOWMEM_RESERVE_RATIO,
 #endif
        {
                .ctl_name       = VM_LOWMEM_RESERVE_RATIO,