Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.24-rc5-git6 /kernel/sysctl.c

Filename:/kernel/sysctl.c
Lines Added:8
Lines Deleted:8
Also changed in: (Previous) 2.6.24-rc5-git5  2.6.24-rc5  2.6.24-rc4-git7  2.6.24-rc4-git6  2.6.24-rc4-git5  2.6.24-rc4-git4 
(Following) 2.6.24-rc5-git7  2.6.24-rc6  2.6.24-rc7  2.6.24-rc8  2.6.24  2.6.24-git2 

Location
[  2.6.24-rc5-git6
  [  kernel
     o  sysctl.c

Patch

diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 8ac5171..c68f68d 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -225,10 +225,10 @@ static struct ctl_table root_table[] = {
 };
 
 #ifdef CONFIG_SCHED_DEBUG
-static unsigned long min_sched_granularity_ns = 100000;      /* 100 usecs */
-static unsigned long max_sched_granularity_ns = NSEC_PER_SEC;   /* 1 second */
-static unsigned long min_wakeup_granularity_ns;         /* 0 usecs */
-static unsigned long max_wakeup_granularity_ns = NSEC_PER_SEC;   /* 1 second */
+static int min_sched_granularity_ns = 100000;      /* 100 usecs */
+static int max_sched_granularity_ns = NSEC_PER_SEC;   /* 1 second */
+static int min_wakeup_granularity_ns;         /* 0 usecs */
+static int max_wakeup_granularity_ns = NSEC_PER_SEC;   /* 1 second */
 #endif
 
 static struct ctl_table kern_table[] = {
@@ -906,11 +906,11 @@ static struct ctl_table vm_table[] = {
    },
    {
       .ctl_name   = CTL_UNNUMBERED,
-      .procname   = "hugetlb_dynamic_pool",
-      .data      = &hugetlb_dynamic_pool,
-      .maxlen      = sizeof(hugetlb_dynamic_pool),
+      .procname   = "nr_overcommit_hugepages",
+      .data      = &nr_overcommit_huge_pages,
+      .maxlen      = sizeof(nr_overcommit_huge_pages),
       .mode      = 0644,
-      .proc_handler   = &proc_dointvec,
+      .proc_handler   = &proc_doulongvec_minmax,
    },
 #endif
    {


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.