Hi,
The below code is from kernel/sched.c , schedule () , kernel version 2.0.xx
while (p != &init_task) {
int weight = goodness(p, prev, this_cpu);
if (weight > c)
c = weight, next = p;
p = p->next_run;
}
I could understand the need for
if (weight > c)
c = weight, next = p;
It could as well have been
if (weight > c)
{
c = weight;
next = p;
}
Since both compile to the same intermediate assembly code.
Is there something I have missed.
TIA,
Sup
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:11 EST