aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-01-25 15:08:28 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-25 15:08:28 -0500
commit03319ec8b06849051747a17aa2a0f9aba9277980 (patch)
tree085d1b072b95e91061d27cb3bab965ff83b6b04a /kernel
parent78f2c7db6068fd6ef75b8c120f04a388848eacb5 (diff)
sched: documentation, whitespace fixes
whitespace fixes. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index c2cedd09d895..b9ee0f4db66a 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -182,7 +182,7 @@ struct task_group {
182 * 182 *
183 * Bw(A) = 1000/(1000+2000+3000) * 100 = 16.66% 183 * Bw(A) = 1000/(1000+2000+3000) * 100 = 16.66%
184 * Bw(B) = 2000/(1000+2000+3000) * 100 = 33.33% 184 * Bw(B) = 2000/(1000+2000+3000) * 100 = 33.33%
185 * Bw(C) = 3000/(1000+2000+3000) * 100 = 50% 185 * Bw(C) = 3000/(1000+2000+3000) * 100 = 50%
186 * 186 *
187 * The weight assigned to a task group's schedulable entities on every 187 * The weight assigned to a task group's schedulable entities on every
188 * cpu (task_group.se[a_cpu]->load.weight) is derived from the task 188 * cpu (task_group.se[a_cpu]->load.weight) is derived from the task
@@ -192,9 +192,9 @@ struct task_group {
192 * tg_A->se[0]->load.weight = tg_A->se[1]->load.weight = 1000; 192 * tg_A->se[0]->load.weight = tg_A->se[1]->load.weight = 1000;
193 * 193 *
194 * Note: It's not necessary that each of a task's group schedulable 194 * Note: It's not necessary that each of a task's group schedulable
195 * entity have the same weight on all CPUs. If the group 195 * entity have the same weight on all CPUs. If the group
196 * has 2 of its tasks on CPU0 and 1 task on CPU1, then a 196 * has 2 of its tasks on CPU0 and 1 task on CPU1, then a
197 * better distribution of weight could be: 197 * better distribution of weight could be:
198 * 198 *
199 * tg_A->se[0]->load.weight = 2/3 * 2000 = 1333 199 * tg_A->se[0]->load.weight = 2/3 * 2000 = 1333
200 * tg_A->se[1]->load.weight = 1/2 * 2000 = 667 200 * tg_A->se[1]->load.weight = 1/2 * 2000 = 667