repo.or.cz
/
coreboot2.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
soc/intel: Remove blank lines before '}' and after '{'
[coreboot2.git]
/
src
/
soc
/
intel
/
denverton_ns
/
tsc_freq.c
blob
e4a9956d40e9769387760555e2803f531c12e13e
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <cpu/x86/msr.h>
4
#include <cpu/x86/tsc.h>
5
6
#include <soc/cpu.h>
7
#include <soc/msr.h>
8
9
unsigned long
tsc_freq_mhz
(
void
)
10
{
11
msr_t platform_info
;
12
13
platform_info
=
rdmsr
(
MSR_PLATFORM_INFO
);
14
return
CPU_BCLK
* ((
platform_info
.
lo
>>
8
) &
0xff
);
15
}