x86/io_apic: Cleanup trigger/polarity helpers
authorThomas Gleixner <tglx@linutronix.de>
Sat, 24 Oct 2020 21:35:19 +0000 (22:35 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Oct 2020 19:26:26 +0000 (20:26 +0100)
commita27dca645d2c0f31abb7858aa0e10b2fa0f2f659
tree9573bd02be3fe46260dfae5b54823df3a22f815e
parent0c1883c1eb9dfa3c72af6e00425eeb1eb171a03e
x86/io_apic: Cleanup trigger/polarity helpers

'trigger' and 'polarity' are used throughout the I/O-APIC code for handling
the trigger type (edge/level) and the active low/high configuration. While
there are defines for initializing these variables and struct members, they
are not used consequently and the meaning of 'trigger' and 'polarity' is
opaque and confusing at best.

Rename them to 'is_level' and 'active_low' and make them boolean in various
structs so it's entirely clear what the meaning is.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20201024213535.443185-20-dwmw2@infradead.org
arch/x86/include/asm/hw_irq.h
arch/x86/kernel/apic/io_apic.c
arch/x86/pci/intel_mid_pci.c
drivers/iommu/amd/iommu.c
drivers/iommu/intel/irq_remapping.c