• Alessandro Rubini's avatar
    wr-servo: run twice as fast · 6ecdf970
    Alessandro Rubini authored
    The old code used to discard every other tuple, because when "wait for
    hardware was set", the code cleared the flag and did nothing. This was
    exposed by one of the clean-up passes, but I chose not to change the
    behaviour.
    
    Now I do the normal work when wait_for_hw gets cleared.  However, as a
    side effect, wr_mon was always saying "wait for hardware", because any
    action would set the flag.
    
    Thus, the solution is not setting the flag in TRACK_PHASE, but only
    in the initial SYNC_SEC and SYNC_NSEC states. The code then checks
    if the hardware is busy, irrespective of any flag.  The result in wr_mon
    is matching reality, and the code works twice as fast as it used to.
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    6ecdf970
Name
Last commit
Last update
arch-bare-i386 Loading commit data...
arch-bare-x86-64 Loading commit data...
arch-sim Loading commit data...
arch-unix Loading commit data...
arch-wrpc Loading commit data...
arch-wrs Loading commit data...
configs Loading commit data...
doc Loading commit data...
etc Loading commit data...
include/ppsi Loading commit data...
lib Loading commit data...
lib-bare Loading commit data...
pp_printf Loading commit data...
proto-ext-whiterabbit Loading commit data...
proto-standard Loading commit data...
scripts Loading commit data...
time-bare Loading commit data...
time-sim Loading commit data...
time-unix Loading commit data...
time-wrpc Loading commit data...
time-wrs Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LIB Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
diag.c Loading commit data...
fsm.c Loading commit data...