]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
x86/hpet: Carve out shareable parts of init_one_hpet_msi_clockevent()
authorThomas Gleixner <tglx@linutronix.de>
Sun, 23 Jun 2019 13:24:07 +0000 (15:24 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 27 Jun 2019 22:57:26 +0000 (00:57 +0200)
commitea99110dd024d2f31bde19dda049f3fbf3816a70
tree94d0bb04e4b4da73475566c423735feb51b7518d
parent310b5b3eb6ba5d3a92d783b9fa1c5a3ffb5932e9
x86/hpet: Carve out shareable parts of init_one_hpet_msi_clockevent()

To finally remove the static channel0/clockevent storage and to utilize the
channel 0 storage in hpet_base, it's required to run time initialize the
clockevent. The MSI clockevents already have a run time init function.

Carve out the parts which can be shared between the legacy and the MSI
implementation.

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/20190623132436.552451082@linutronix.de
arch/x86/kernel/hpet.c