Linux-kernel mailing list archive 1999-20,: Sched.c ??

# Sched.c ??

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

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Jeff Hittman: "blk_ioctl in 2.3.3-ac2"
- Previous message: Horst von Brand: "Re: Capabilities done right [diff against 2.3.1]"

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/

- Next message: Jeff Hittman: "blk_ioctl in 2.3.3-ac2"
- Previous message: Horst von Brand: "Re: Capabilities done right [diff against 2.3.1]"