Skip to content

Commit

Permalink
x86/io_apic: Cleanup trigger/polarity helpers
Browse files Browse the repository at this point in the history
'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
  • Loading branch information
Thomas Gleixner committed Oct 28, 2020
1 parent 0c1883c commit a27dca6
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 147 deletions.
6 changes: 3 additions & 3 deletions arch/x86/include/asm/hw_irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ enum irq_alloc_type {
struct ioapic_alloc_info {
int pin;
int node;
u32 trigger : 1;
u32 polarity : 1;
u32 valid : 1;
u32 is_level : 1;
u32 active_low : 1;
u32 valid : 1;
struct IO_APIC_route_entry *entry;
};

Expand Down
Loading

0 comments on commit a27dca6

Please sign in to comment.