Skip to content

Commit

Permalink
timers/x86/hpet: Use HPET_COUNTER to specify the hpet counter in vrea…
Browse files Browse the repository at this point in the history
…d_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: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Cc: H. Peter Anvin <hpa@linux.intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
Satoru Takeuchi authored and Ingo Molnar committed Feb 15, 2013
1 parent e6c42c2 commit 36dfbbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/vdso/vclock_gettime.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36dfbbf

Please sign in to comment.