repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge tag 'ntb-5.11' of git://github.com/jonmason/ntb
[linux/fpc-iii.git]
/
tools
/
perf
/
arch
/
x86
/
util
/
tsc.c
blob
559365f8fe52f3f2bbf1b81e798990ef19a68764
1
// SPDX-License-Identifier: GPL-2.0
2
#include <linux/types.h>
3
4
#include
"../../../util/tsc.h"
5
6
u64
rdtsc
(
void
)
7
{
8
unsigned int
low
,
high
;
9
10
asm
volatile
(
"rdtsc"
:
"=a"
(
low
),
"=d"
(
high
));
11
12
return
low
| ((
u64
)
high
) <<
32
;
13
}