]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[monojob] Check for keypresses only once per timer tick
authorMichael Brown <mcb30@ipxe.org>
Thu, 28 Jun 2012 11:27:43 +0000 (12:27 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 28 Jun 2012 15:02:37 +0000 (16:02 +0100)
commit85917ba8dd7814856be12f8c00ef755547166fad
tree8550cbc5c652eef87ce59d85ad60691c58e6fd7e
parentec22e08db1fa61f5276b2ed1efbde28a1a45101e
[monojob] Check for keypresses only once per timer tick

Checking for keypresses takes a non-negligible amount of time, and
measurably affects our RTT.  Minimise the impact by checking for
keypresses only once per timer tick.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/monojob.c