mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
reduce DELAY_MINIMUM_SLEEP_US to 100 by default
This makes flashrom sleep more eagerly rather than busy-waiting, observing that most delays in flashrom are either less than 100 microseconds (barely enough time to get any work done, even on a fast machine) or much more than 1 millisecond (very wasteful to busy-loop). Since we believe most systems offer good timer resolution that should provide sleep latency on the order of 100 microseconds, this is a reasonable default. For DOS, the default is set to 50ms because the best available timing source on DOS only ticks at about 20 Hz. Signed-off-by: Peter Marheine <pmarheine@chromium.org> Change-Id: I0f431d240c670446218b14811ef62a34e4c83da2 Reviewed-on: https://review.coreboot.org/c/flashrom/+/81608 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
This commit is contained in:
@ -30,6 +30,8 @@ default_library = 'static'
|
||||
[project options]
|
||||
tests = 'disabled'
|
||||
ich_descriptors_tool = 'disabled'
|
||||
# DOS time resolution is only about 50ms
|
||||
delay_minimum_sleep_us = 50000
|
||||
|
||||
[properties]
|
||||
sys_root = '/usr/local/djgpp'
|
||||
|
Reference in New Issue
Block a user