[patch 00/29] x86/hpet: Cleanup the channel management

From: Thomas Gleixner
Date: Sun Jun 23 2019 - 09:29:23 EST


When reviewing the HPET NMI watchdog series, I stared into the HPET code
and the proposed changes. The latter try to add yet another layer of duct
tape and ifdeffery to the existing maze. No, thanks.

The following series cleans up the channel management and consolidates all
state storage into a single place instead of 3 different ad hoc allocated
places which carry redundant information and make the code hard to follow.

The reservation of a HPET channel for a NMI watchdog becomes a few lines of
code after that series and just fits naturaly into that scheme without glue
and more extra storage and ifdeffery.

For your conveniance the series is also available from git:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/hpet

Thanks,

tglx

8<---------------------
include/asm/hpet.h | 7
kernel/apic/msi.c | 4
kernel/hpet.c | 937 +++++++++++++++++++++++------------------------------
3 files changed, 428 insertions(+), 520 deletions(-)