Re: [patch] v4l: bttv update

From: Gerd Knorr
Date: Mon Sep 20 2004 - 04:22:15 EST


Nishanth Aravamudan <nacc@xxxxxxxxxx> writes:

> > - set_current_state(TASK_INTERRUPTIBLE);
> > - schedule_timeout(HZ/50);
> > + msleep(10);
>
> My original patch used
>
> msleep(20);
>
> Is there a reason the conversion was changed?

Doesn't really matter. The code just polls in a loop until the status
register says the pll is locked. Usually it needs one round only, so
the delay can be smaller to make the function return earlier ;)

Gerd

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