x86/hpet: Use cached channel data
authorThomas Gleixner <tglx@linutronix.de>
Sun, 23 Jun 2019 13:23:59 +0000 (15:23 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 27 Jun 2019 22:57:22 +0000 (00:57 +0200)
commit2460d5878ad69c178f9ff1cc3eee9f09b017e15f
tree8ef4470496eec1500c030b83cb497f5ac79f1fb0
parente37f0881e9d9ec8b12f242cc2b78d93259aa7f0f
x86/hpet: Use cached channel data

Instead of rereading the HPET registers over and over use the information
which was cached in hpet_enable().

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Andi Kleen <andi.kleen@intel.com>
Cc: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Ravi Shankar <ravi.v.shankar@intel.com>
Link: https://lkml.kernel.org/r/20190623132435.821728550@linutronix.de
arch/x86/kernel/hpet.c