projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6c42c2
)
timers/x86/hpet: Use HPET_COUNTER to specify the hpet counter in vread_hpet()
author
Satoru Takeuchi
<
[email protected]
>
Fri, 15 Feb 2013 07:58:14 +0000
(16:58 +0900)
committer
Ingo Molnar
<
[email protected]
>
Fri, 15 Feb 2013 11:13:18 +0000
(12:13 +0100)
vread_hpet() uses "0xf0" as the offset of the hpet counter. To
clarify the meaning of this code, it should use symbolic name,
HPET_COUNTER, instead.
Signed-off-by: Satoru Takeuchi <
[email protected]
>
Cc: H. Peter Anvin <
[email protected]
>
Cc: "H. Peter Anvin" <
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/vdso/vclock_gettime.c
patch
|
blob
|
history
diff --git
a/arch/x86/vdso/vclock_gettime.c
b/arch/x86/vdso/vclock_gettime.c
index 205ad328aa52810975dd332771a16911f5e6935b..c74436e687bf8984b722efa1a657e1a6a8b47f3b 100644
(file)
--- a/
arch/x86/vdso/vclock_gettime.c
+++ b/
arch/x86/vdso/vclock_gettime.c
@@
-60,7
+60,7
@@
notrace static cycle_t vread_tsc(void)
static notrace cycle_t vread_hpet(void)
{
- return readl((const void __iomem *)fix_to_virt(VSYSCALL_HPET) +
0xf0
);
+ return readl((const void __iomem *)fix_to_virt(VSYSCALL_HPET) +
HPET_COUNTER
);
}
#ifdef CONFIG_PARAVIRT_CLOCK