Sched.c ??

Mofeed Shahin (shahin@labf.org)
Wed, 19 May 1999 00:00:43 +0930 (CST)


At line 810 of sched.c in 2.3.3 there is the following line :

prev->avg_slice = (this_slice*1 + prev->avg_slice*1)/2;

My question is, why multiply by 1 ?
ie what is the difference between the following two :

prev->avg_slice = (this_slice*1 + prev->avg_slice*1)/2;
prev->avg_slice = (this_slice + prev->avg_slice)/2;

Cheers Mof.

-
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/