Skip to content

Commit

Permalink
x86, apic: remove DEFAULT_IRQ_DELIVERY_MODE and DEFAULT_IRQ_DEST_MODE
Browse files Browse the repository at this point in the history
Impact: cleanup

They were only used in a single place and obscured the apic_default template.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Jan 28, 2009
1 parent 9b5bc8d commit dcafa4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions arch/x86/include/asm/mach-default/mach_apic.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ static inline const struct cpumask *target_cpus(void)
#define wakeup_secondary_cpu (apic->wakeup_cpu)
extern void setup_apic_routing(void);
#else
#define DEFAULT_IRQ_DELIVERY_MODE dest_LowestPrio
#define DEFAULT_IRQ_DEST_MODE 1 /* logical delivery broadcast to all procs */
#define TARGET_CPUS (target_cpus())
#define wakeup_secondary_cpu wakeup_secondary_cpu_via_init
/*
Expand Down
5 changes: 3 additions & 2 deletions arch/x86/mach-generic/default.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ struct genapic apic_default = {
.acpi_madt_oem_check = NULL,
.apic_id_registered = default_apic_id_registered,

.irq_delivery_mode = DEFAULT_IRQ_DELIVERY_MODE,
.irq_dest_mode = DEFAULT_IRQ_DEST_MODE,
.irq_delivery_mode = dest_LowestPrio,
/* logical delivery broadcast to all CPUs: */
.irq_dest_mode = 1,

.target_cpus = target_cpus,
.ESR_DISABLE = esr_disable,
Expand Down

0 comments on commit dcafa4a

Please sign in to comment.