summaryrefslogtreecommitdiffstats
path: root/src/core/btext.c
diff options
context:
space:
mode:
authorMichael Brown2011-06-24 17:51:31 +0200
committerMichael Brown2011-06-28 15:45:11 +0200
commit3915b660fda1c670bf1d5a5def4f68cd1cfb3967 (patch)
tree1d1e4abcca15d7f63cc794237f4419e7d6be8311 /src/core/btext.c
parent[infiniband] Use a one-shot process for CMRC shutdown (diff)
downloadipxe-3915b660fda1c670bf1d5a5def4f68cd1cfb3967.tar.gz
ipxe-3915b660fda1c670bf1d5a5def4f68cd1cfb3967.tar.xz
ipxe-3915b660fda1c670bf1d5a5def4f68cd1cfb3967.zip
[hw] Eliminate polling while waiting for window to open
Polling for the data-transfer window to become open is wasteful. We can eliminate the polling loop by using hw_step() as the handler for an xfer_window_changed() event. If the window is already open at the time of instantiation, then xfer_window_changed() may never be called. We can cover this case by using hw_step() as the step() method of a one-shot process. Since the signature for an xfer_window_changed() method is identical to the signature for a process step() method, the same function can be used for both. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/btext.c')
0 files changed, 0 insertions, 0 deletions