[linux-dvb] sleeping in saa7146_i2c_writeout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm looking in saa7146_i2c.c near line 207

do not poll for i2c status before upload is complete

timeout = jiffies + HZ/100 + 1;

and it thinks that's 10 miliseconds.  That's fine because it looks like it 
won't actually wait 10 ms.

and what does this code mean?

if ((++trial < 20) && short_delay)
udelay(10);
else
msleep(1);

when switching voltage, I'd rather udelay(10) instead of sleeping 1ms. 
(that's 10 microseconds, right?)

Is it acceptable to raise this from 20 to 40 or something larger?

I'm finding that on an RT-capable kernel is making trial equal 20 and thus 
sleeping 1ms.

_J


[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux