xf86-input-evdev: Changes to 'master'

Adam Jackson ajax at kemper.freedesktop.org
Mon Feb 23 13:14:04 PST 2009


 src/evdev.c |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

New commits:
commit 75af278861dcd96124544d3c2889028578708317
Author: Adam Jackson <ajax at redhat.com>
Date:   Mon Feb 23 16:01:14 2009 -0500

    Open with O_NONBLOCK, and simplify EvdevReadInput to match.
    
    xf86WaitForInput() would call select() with zero timeout to discover if
    more input was ready.  But we know that's always true at least once,
    since we're only ever called from the sigio handler (if silken is
    active) or from the main loop (if it's not and we selected readable).
    With nonblocking IO we can just spin around until we hit EAGAIN, which
    gets us down to n+1 syscalls per event instead of 2n.



More information about the xorg-commit mailing list