[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: testing/pre-7 and do_poll()
On Mon, 11 Jan 1999, Chip Salzenberg wrote:
>
> Well, I forgot the (unsigned long) cast, as someone else noted:
>
> timeout = ROUND_UP((unsigned long) timeout, 1000/HZ);
>
> Otherwise, the code is Just Right.
Duh?
The above code is basically just completely wrong.
Hint: HZ is a define - not 100.
You just ended up dividing by zero on certain architectures.
Linus
--
This is a majordomo managed list. To unsubscribe, send a message with
the body 'unsubscribe linux-mm me@address' to: majordomo@kvack.org