commit | c2cd3010ab947a8f4ff0c3c1dbc73b0cf697c1ae | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Aug 27 19:44:26 2024 -0600 |
committer | Simon Glass <sjg@chromium.org> | Fri Oct 18 14:10:21 2024 -0600 |
tree | 80b38c1484bfb731e715c71dbcd3f376819f0073 | |
parent | 3ebdefc146eb4405cd936dc9ba15e031682815fe [diff] |
x86: Avoid timer-clock overflow When the clock speed is above about 4GHz, e.g. on modern PC hardware, the timer overflows, resulting in a much lower frequency than expected. Deal with this by capping the clock speed. It would be possible to move to a 64-bit value for the clock, but that is a pain to deal with. A better approach might be to express the clock in MHz but that is left for later consideration. Signed-off-by: Simon Glass <sjg@chromium.org>