Commit 36dfbbf1 authored by Satoru Takeuchi's avatar Satoru Takeuchi Committed by Ingo Molnar

timers/x86/hpet: Use HPET_COUNTER to specify the hpet counter in vread_hpet()

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: default avatarSatoru Takeuchi <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Signed-off-by: default avatarIngo Molnar <[email protected]>
parent e6c42c29
......@@ -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);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment