[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kernel
Subject:    Sched.c ??
From:       Mofeed Shahin <shahin () labf ! org>
Date:       1999-05-18 14:42:43
[Download RAW message or body]


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/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic