Linux-kernel mailing list archive 2000-26,: Re: nanosleep/select/gphoto/camera download broken

# Re: nanosleep/select/gphoto/camera download broken

Richard B. Johnson (root@chaos.analogic.com)
Mon, 26 Jun 2000 17:16:29 -0400 (EDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Eric Buddington: "2.4.0test2 Oops, Aieee in block/floppy.o"
- Previous message: Marcelo Tosatti: "Re: OOM?"

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/

- Next message: Eric Buddington: "2.4.0test2 Oops, Aieee in block/floppy.o"
- Previous message: Marcelo Tosatti: "Re: OOM?"