Commit 39901d5f authored by Ingo Molnar's avatar Ingo Molnar Committed by Linus Torvalds

[PATCH] sched: whitespace cleanups

- whitespace and style cleanups
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e272d4c2
......@@ -3930,15 +3930,16 @@ static void migrate_all_tasks(int src_cpu)
cpus_setall(tsk->cpus_allowed);
dest_cpu = any_online_cpu(tsk->cpus_allowed);
/* Don't tell them about moving exiting tasks
or kernel threads (both mm NULL), since
they never leave kernel. */
/*
* Don't tell them about moving exiting tasks
* or kernel threads (both mm NULL), since
* they never leave kernel.
*/
if (tsk->mm && printk_ratelimit())
printk(KERN_INFO "process %d (%s) no "
"longer affine to cpu%d\n",
tsk->pid, tsk->comm, src_cpu);
}
__migrate_task(tsk, src_cpu, dest_cpu);
} while_each_thread(t, tsk);
......@@ -4210,24 +4211,24 @@ __init static int cpu_to_node_group(int cpu)
/* Groups for isolated scheduling domains */
static struct sched_group sched_group_isolated[NR_CPUS];
/* cpus with isolated domains */
cpumask_t __initdata cpu_isolated_map = CPU_MASK_NONE;
__init static int cpu_to_isolated_group(int cpu)
{
return cpu;
}
cpumask_t __initdata cpu_isolated_map = CPU_MASK_NONE; /* cpus with isolated domains */
/* Setup the mask of cpus configured for isolated domains */
static int __init
isolated_cpu_setup(char *str)
static int __init isolated_cpu_setup(char *str)
{
int ints[NR_CPUS], i;
str = get_options(str, ARRAY_SIZE(ints), ints);
cpus_clear(cpu_isolated_map);
for (i=1; i<=ints[0]; i++) {
for (i = 1; i <= ints[0]; i++)
cpu_set(ints[i], cpu_isolated_map);
}
return 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment