Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fb615581c78efee25e4d04f1145e8fa8ec705dc3
Commit:     fb615581c78efee25e4d04f1145e8fa8ec705dc3
Parent:     b39c5dd7f938775fd0a1df5b4b1c26f854d15231
Author:     Srivatsa Vaddagiri <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 15 17:00:12 2007 +0200
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Mon Oct 15 17:00:12 2007 +0200

    sched: group scheduler, fix coding style issues
    
    Fix coding style issues reported by Randy Dunlap and others
    
    Signed-off-by: Dhaval Giani <[EMAIL PROTECTED]>
    Signed-off-by: Srivatsa Vaddagiri <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
    Reviewed-by: Thomas Gleixner <[EMAIL PROTECTED]>
---
 init/Kconfig         |   14 +++++++-------
 kernel/sched_debug.c |    8 ++------
 2 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/init/Kconfig b/init/Kconfig
index faed9a0..54f31a1 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -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
 
diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c
index 995bbd3..48748d0 100644
--- a/kernel/sched_debug.c
+++ b/kernel/sched_debug.c
@@ -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;
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to