mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
util/nvmutil: don't usleep on file reads
i don't care. it's only 30 tries. usleep can fail, setting errno, and it can actually take longer, depending on the environment. it poisons errno, and makes debugging harder. just remove it. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -448,9 +448,6 @@ check_read_or_die(const char *rpath, ssize_t rval, size_t rsize,
|
||||
err(EINTR, "%s: max retries exceeded on file: %s",
|
||||
readtype, rpath);
|
||||
|
||||
/* Prevent CPU hog when on spin-locked reads. */
|
||||
usleep(1);
|
||||
|
||||
/*
|
||||
* Bad read, with errno EINTR (syscall interrupted).
|
||||
* Reset the error state and try again.
|
||||
|
||||
Reference in New Issue
Block a user