Skip to content
Snippets Groups Projects
Commit 7c71034d authored by Vadim Bendebury's avatar Vadim Bendebury Committed by Simon Glass
Browse files

x86: Provide tick counter and frequency reference for Intel core architecture


Some u-boot modules rely on availability of get_ticks() and
get_tbclk() functions, reporting a free running clock and its
frequency respectively. Traditionally these functions return number
and frequency of timer interrupts.

Intel's core architecture processors however are known to run the
rdtsc instruction at a constant rate of the so called 'Max Non Turbo
ratio' times the external clock frequency which is 100MHz. This is
just as good for the timer tick functions in question.

Signed-off-by: default avatarVadim Bendebury <vbendeb@chromium.org>
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent b83058cd
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment