All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] Re: sis-agp: replace schedule_timeout() with
@ 2004-07-20 22:39 Domen Puncer
  2004-07-20 23:15 ` Nishanth Aravamudan
  0 siblings, 1 reply; 2+ messages in thread
From: Domen Puncer @ 2004-07-20 22:39 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 499 bytes --]

On 20/07/04 21:01 +0000, Nishanth Aravamudan wrote:
...
> --- linux-vanilla/drivers/char/agp/sis-agp.c	2004-06-16 05:18:56.000000000 +0000
...
> -			set_current_state(TASK_UNINTERRUPTIBLE);
> -			schedule_timeout (1+(HZ*10)/1000);
> +			msleep(HZ);		/* sleep 1s */

Umm... what?
I mean... HZ jiffies is one second, but HZ miliseconds is not necessary 1 s.
And that delay looks wierd, what was the point of HZ*10/1000 in the first
place? Why not HZ/100?

Anyway, IMO msleep(10) seems right.


	Domen

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-20 23:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-20 22:39 [Kernel-janitors] Re: sis-agp: replace schedule_timeout() with Domen Puncer
2004-07-20 23:15 ` Nishanth Aravamudan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.