Skip to content

Commit

Permalink
xen: add xen hvm acpi_register_gsi variant
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Fitzhardinge <[email protected]>
Signed-off-by: Stefano Stabellini <[email protected]>
Reviewed-by: Konrad Rzeszutek Wilk <[email protected]>
Acked-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
jsgf authored and Stefano Stabellini committed Oct 22, 2010
1 parent 2f065ae commit 90f6881
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions arch/x86/include/asm/acpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ extern u8 acpi_sci_flags;
extern int acpi_sci_override_gsi;
void acpi_pic_sci_set_trigger(unsigned int, u16);

extern int (*__acpi_register_gsi)(struct device *dev, u32 gsi,
int trigger, int polarity);

static inline void disable_acpi(void)
{
acpi_disabled = 1;
Expand Down
3 changes: 2 additions & 1 deletion arch/x86/kernel/acpi/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,8 @@ static int acpi_register_gsi_ioapic(struct device *dev, u32 gsi,
return gsi;
}

static int (*__acpi_register_gsi)(struct device *dev, u32 gsi, int trigger, int polarity) = acpi_register_gsi_pic;
int (*__acpi_register_gsi)(struct device *dev, u32 gsi,
int trigger, int polarity) = acpi_register_gsi_pic;

/*
* success: return IRQ number (>=0)
Expand Down
6 changes: 6 additions & 0 deletions arch/x86/pci/xen.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ static int xen_hvm_register_pirq(u32 gsi, int triggering)

return irq;
}

static int acpi_register_gsi_xen_hvm(struct device *dev, u32 gsi,
int trigger, int polarity)
{
return xen_hvm_register_pirq(gsi, trigger);
}
#endif

#if defined(CONFIG_PCI_MSI)
Expand Down

0 comments on commit 90f6881

Please sign in to comment.