Skip to content

Commit

Permalink
sched: group scheduler, fix coding style issues
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Srivatsa Vaddagiri authored and Ingo Molnar committed Oct 15, 2007
1 parent b39c5dd commit fb61558
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
14 changes: 7 additions & 7 deletions init/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -282,23 +282,23 @@ 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
depends on FAIR_GROUP_SCHED
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

Expand Down
8 changes: 2 additions & 6 deletions kernel/sched_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit fb61558

Please sign in to comment.