RE: [PATCH] omapfb vsync support

Woodruff, Richard
2006-02-27T23:43:49Z

> Maybe we could simply disable the IRQ from the IRQ handler after a
> second or so if no client has requested a FBIO_WAITFORSYNC ioctl?
>
> That, combined with disabling the interrupt when a client closes the
> driver should take care of most cases.
>
> Alternatively, we could disable the IRQ each time, if it's not a too
> heavy operation?

Maybe just have a use count and decrement it in omapfb_wait_for_vsync()
at wake up time... If you know how many users are in your queue you
should know how many to decrement it by. If a process is killed I'm not
sure how that plays out, the kernel likely just closes paths and
probably silently de-queues a process where ever it happens to be stuck.

Regards,
Richard W.