Commit fb615581 authored by Srivatsa Vaddagiri's avatar Srivatsa Vaddagiri Committed by Ingo Molnar
Browse files

sched: group scheduler, fix coding style issues



Fix coding style issues reported by Randy Dunlap and others

Signed-off-by: default avatarDhaval Giani <dhaval@linux.vnet.ibm.com>
Signed-off-by: default avatarSrivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Reviewed-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent b39c5dd7
Loading
Loading
Loading
Loading
+7 −7
Original line number Original line Diff line number Diff line
@@ -282,11 +282,11 @@ config CPUSETS
	  Say N if unsure.
	  Say N if unsure.


config FAIR_GROUP_SCHED
config FAIR_GROUP_SCHED
	bool "Fair group cpu scheduler"
	bool "Fair group CPU scheduler"
	default y
	default y
	depends on EXPERIMENTAL
	depends on EXPERIMENTAL
	help
	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.
	  bandwidth allocation to such task groups.


choice
choice
@@ -298,7 +298,7 @@ choice
	bool "user id"
	bool "user id"
	help
	help
	  This option will choose userid as the basis for grouping
	  This option will choose userid as the basis for grouping
		  tasks, thus providing equal cpu bandwidth to each user.
	  tasks, thus providing equal CPU bandwidth to each user.


endchoice
endchoice


+2 −6
Original line number Original line Diff line number Diff line
@@ -239,11 +239,7 @@ static int
root_user_share_read_proc(char *page, char **start, off_t off, int count,
root_user_share_read_proc(char *page, char **start, off_t off, int count,
				 int *eof, void *data)
				 int *eof, void *data)
{
{
	int len;
	return sprintf(page, "%d\n", init_task_grp_load);

	len = sprintf(page, "%d\n", init_task_grp_load);

	return len;
}
}


static int
static int
@@ -297,7 +293,7 @@ static int __init init_sched_debug_procfs(void)
	pe->proc_fops = &sched_debug_fops;
	pe->proc_fops = &sched_debug_fops;


#ifdef CONFIG_FAIR_USER_SCHED
#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)
	if (!pe)
		return -ENOMEM;
		return -ENOMEM;