sched: group scheduler, fix coding style issues
authorSrivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
Mon, 15 Oct 2007 15:00:12 +0000 (17:00 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 15 Oct 2007 15:00:12 +0000 (17:00 +0200)
Fix coding style issues reported by Randy Dunlap and others

Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Signed-off-by: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
init/Kconfig
kernel/sched_debug.c

index faed9a0b6f24b20ac472e9b8d82a8d2ba245b4b0..54f31a191b8813a1bac92190cd237023c30a684d 100644 (file)
@@ -282,11 +282,11 @@ config CPUSETS
          Say N if unsure.
 
 config FAIR_GROUP_SCHED
-       bool "Fair group cpu scheduler"
+       bool "Fair group CPU scheduler"
        default y
        depends on EXPERIMENTAL
        help
-         This feature lets cpu scheduler recognize task groups and control cpu
+         This feature lets CPU scheduler recognize task groups and control CPU
          bandwidth allocation to such task groups.
 
 choice
@@ -294,11 +294,11 @@ choice
        prompt "Basis for grouping tasks"
        default FAIR_USER_SCHED
 
-       config FAIR_USER_SCHED
-               bool "user id"
-               help
-                 This option will choose userid as the basis for grouping
-                 tasks, thus providing equal cpu bandwidth to each user.
+config FAIR_USER_SCHED
+       bool "user id"
+       help
+         This option will choose userid as the basis for grouping
+         tasks, thus providing equal CPU bandwidth to each user.
 
 endchoice
 
index 995bbd384a97a7195238c6800bec8129ae43f296..48748d04144d5c720dc7c44335b8b15400a774d1 100644 (file)
@@ -239,11 +239,7 @@ static int
 root_user_share_read_proc(char *page, char **start, off_t off, int count,
                                 int *eof, void *data)
 {
-       int len;
-
-       len = sprintf(page, "%d\n", init_task_grp_load);
-
-       return len;
+       return sprintf(page, "%d\n", init_task_grp_load);
 }
 
 static int
@@ -297,7 +293,7 @@ static int __init init_sched_debug_procfs(void)
        pe->proc_fops = &sched_debug_fops;
 
 #ifdef CONFIG_FAIR_USER_SCHED
-       pe = create_proc_entry("root_user_share", 0644, NULL);
+       pe = create_proc_entry("root_user_cpu_share", 0644, NULL);
        if (!pe)
                return -ENOMEM;