Re: nanosleep/select/gphoto/camera download broken

From: Richard B. Johnson (root@chaos.analogic.com)
Date: Mon Jun 26 2000 - 16:16:29 EST


On Mon, 26 Jun 2000, George Anzinger wrote:

> For what its worth, if the task is running as "real time" nanosleep will
> use udelay() instead of the clock (I would like to see some rational for
> this). This would cause the sluggishness. As to what the key click
> does, I am lost.
>
> George
> brian@worldcontrol.com wrote:
> >
> > I posted earlier that my daughter found that gphoto could no longer
> > download pictures from her digital camera after I upgraded
> > her machine to 2.2.16.
> >
> > I tried 2.2.17pre6 to see if it made any difference.
> >
> > I also did an strace against gphoto 0.2, 0.3, and 0.4.3.
> >
> > Basically all versions do the same thing. After I click
> > on the button to fetch the picture index from the camera
> > the code does:
> >
[SNIPPED...]

I have seen some programs call nanosleep() instead of sched_yield().
The idea is to give up some time to other tasks. If nanosleep() now
just spins, this will break those programs.

Cheers,
Dick Johnson

Penguin : Linux version 2.2.15 on an i686 machine (797.90 BogoMips).

"Memory is like gasoline. You use it up when you are running. Of
course you get it all back when you reboot..."; Actual explanation
obtained from the Micro$oft help desk.

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



This archive was generated by hypermail 2b29 : Mon Jun 26 2000 - 21:00:09 EST