Re: [timer] max timeout

Andi Kleen (ak@suse.de)
Wed, 23 May 2001 16:38:43 +0200


On Wed, May 23, 2001 at 04:28:01PM +0200, sebastien person wrote:
> Is it bad to do the following call ?
>
> mod_timer(&timer, jiffies+(0.1*HZ));

Yes very bad. gcc will generate a floating point add for that, corrupting
the user process' floating point context.

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/