repo.or.cz
/
tomato.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Changes to update Tomato RAF.
[tomato.git]
/
release
/
src
/
router
/
dnscrypt
/
src
/
libnacl
/
cpucycles
/
x86cpuinfo.c
blob
3fb0a1b07466ff54f1ce8ca8dd968570bd03ae6a
1
#include <stdio.h>
2
#include <sys/types.h>
3
#include
"osfreq.c"
4
5
long long
cpucycles_x86cpuinfo
(
void
)
6
{
7
long long
result
;
8
asm
volatile
(
".byte 15;.byte 49"
:
"=A"
(
result
));
9
return
result
;
10
}
11
12
long long
cpucycles_x86cpuinfo_persecond
(
void
)
13
{
14
return
osfreq
();
15
}