Commit 6153df7b authored by Len Brown's avatar Len Brown

[ACPI] delete CONFIG_ACPI_PCI

Delete the ability to build an ACPI kernel that does
not include PCI support.  When such a machine is created
and it requires a tuned kernel, send a patch.

http://bugzilla.kernel.org/show_bug.cgi?id=1364Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 07fefe4c
...@@ -144,7 +144,6 @@ CONFIG_ACPI_THERMAL=y ...@@ -144,7 +144,6 @@ CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_DEBUG is not set # CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y CONFIG_ACPI_SYSTEM=y
# CONFIG_X86_PM_TIMER is not set # CONFIG_X86_PM_TIMER is not set
......
...@@ -66,13 +66,8 @@ static inline int ioapic_setup_disabled(void) ...@@ -66,13 +66,8 @@ static inline int ioapic_setup_disabled(void)
#define PREFIX "ACPI: " #define PREFIX "ACPI: "
#ifdef CONFIG_ACPI_PCI
int acpi_noirq __initdata; /* skip ACPI IRQ initialization */ int acpi_noirq __initdata; /* skip ACPI IRQ initialization */
int acpi_pci_disabled __initdata; /* skip ACPI PCI scan and IRQ initialization */ int acpi_pci_disabled __initdata; /* skip ACPI PCI scan and IRQ initialization */
#else
int acpi_noirq __initdata = 1;
int acpi_pci_disabled __initdata = 1;
#endif
int acpi_ht __initdata = 1; /* enable HT */ int acpi_ht __initdata = 1; /* enable HT */
int acpi_lapic; int acpi_lapic;
...@@ -849,7 +844,6 @@ extern int acpi_force; ...@@ -849,7 +844,6 @@ extern int acpi_force;
#ifdef __i386__ #ifdef __i386__
#ifdef CONFIG_ACPI_PCI
static int __init disable_acpi_irq(struct dmi_system_id *d) static int __init disable_acpi_irq(struct dmi_system_id *d)
{ {
if (!acpi_force) { if (!acpi_force) {
...@@ -869,7 +863,6 @@ static int __init disable_acpi_pci(struct dmi_system_id *d) ...@@ -869,7 +863,6 @@ static int __init disable_acpi_pci(struct dmi_system_id *d)
} }
return 0; return 0;
} }
#endif
static int __init dmi_disable_acpi(struct dmi_system_id *d) static int __init dmi_disable_acpi(struct dmi_system_id *d)
{ {
...@@ -1017,7 +1010,6 @@ static struct dmi_system_id __initdata acpi_dmi_table[] = { ...@@ -1017,7 +1010,6 @@ static struct dmi_system_id __initdata acpi_dmi_table[] = {
}, },
}, },
#ifdef CONFIG_ACPI_PCI
/* /*
* Boxes that need ACPI PCI IRQ routing disabled * Boxes that need ACPI PCI IRQ routing disabled
*/ */
...@@ -1055,7 +1047,6 @@ static struct dmi_system_id __initdata acpi_dmi_table[] = { ...@@ -1055,7 +1047,6 @@ static struct dmi_system_id __initdata acpi_dmi_table[] = {
DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 360"), DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate 360"),
}, },
}, },
#endif
{} {}
}; };
......
...@@ -5,7 +5,7 @@ obj-$(CONFIG_PCI_MMCONFIG) += mmconfig.o ...@@ -5,7 +5,7 @@ obj-$(CONFIG_PCI_MMCONFIG) += mmconfig.o
obj-$(CONFIG_PCI_DIRECT) += direct.o obj-$(CONFIG_PCI_DIRECT) += direct.o
pci-y := fixup.o pci-y := fixup.o
pci-$(CONFIG_ACPI_PCI) += acpi.o pci-$(CONFIG_ACPI) += acpi.o
pci-y += legacy.o irq.o pci-y += legacy.o irq.o
pci-$(CONFIG_X86_VISWS) := visws.o fixup.o pci-$(CONFIG_X86_VISWS) := visws.o fixup.o
......
...@@ -1075,7 +1075,7 @@ static void pirq_penalize_isa_irq(int irq, int active) ...@@ -1075,7 +1075,7 @@ static void pirq_penalize_isa_irq(int irq, int active)
void pcibios_penalize_isa_irq(int irq, int active) void pcibios_penalize_isa_irq(int irq, int active)
{ {
#ifdef CONFIG_ACPI_PCI #ifdef CONFIG_ACPI
if (!acpi_noirq) if (!acpi_noirq)
acpi_penalize_isa_irq(irq, active); acpi_penalize_isa_irq(irq, active);
else else
......
...@@ -113,7 +113,6 @@ CONFIG_ACPI_PROCESSOR=m ...@@ -113,7 +113,6 @@ CONFIG_ACPI_PROCESSOR=m
CONFIG_ACPI_THERMAL=m CONFIG_ACPI_THERMAL=m
# CONFIG_ACPI_DEBUG is not set # CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_POWER=y CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y CONFIG_ACPI_SYSTEM=y
# #
......
...@@ -136,7 +136,6 @@ CONFIG_ACPI=y ...@@ -136,7 +136,6 @@ CONFIG_ACPI=y
CONFIG_ACPI_NUMA=y CONFIG_ACPI_NUMA=y
# CONFIG_ACPI_DEBUG is not set # CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_POWER=y CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y CONFIG_ACPI_SYSTEM=y
# CONFIG_ACPI_CONTAINER is not set # CONFIG_ACPI_CONTAINER is not set
......
...@@ -135,7 +135,6 @@ CONFIG_ACPI_PROCESSOR=m ...@@ -135,7 +135,6 @@ CONFIG_ACPI_PROCESSOR=m
CONFIG_ACPI_THERMAL=m CONFIG_ACPI_THERMAL=m
# CONFIG_ACPI_DEBUG is not set # CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_POWER=y CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y CONFIG_ACPI_SYSTEM=y
# CONFIG_ACPI_CONTAINER is not set # CONFIG_ACPI_CONTAINER is not set
......
...@@ -134,7 +134,6 @@ CONFIG_ACPI_PROCESSOR=y ...@@ -134,7 +134,6 @@ CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_DEBUG is not set # CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_POWER=y CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y CONFIG_ACPI_SYSTEM=y
# CONFIG_ACPI_CONTAINER is not set # CONFIG_ACPI_CONTAINER is not set
......
...@@ -126,7 +126,6 @@ CONFIG_ACPI_THERMAL=m ...@@ -126,7 +126,6 @@ CONFIG_ACPI_THERMAL=m
CONFIG_ACPI_NUMA=y CONFIG_ACPI_NUMA=y
# CONFIG_ACPI_DEBUG is not set # CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_POWER=y CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y CONFIG_ACPI_SYSTEM=y
CONFIG_ACPI_CONTAINER=m CONFIG_ACPI_CONTAINER=m
......
...@@ -151,7 +151,6 @@ CONFIG_ACPI_BLACKLIST_YEAR=2001 ...@@ -151,7 +151,6 @@ CONFIG_ACPI_BLACKLIST_YEAR=2001
# CONFIG_ACPI_DEBUG is not set # CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y CONFIG_ACPI_SYSTEM=y
# CONFIG_ACPI_CONTAINER is not set # CONFIG_ACPI_CONTAINER is not set
......
...@@ -8,7 +8,7 @@ CFLAGS += -Iarch/i386/pci ...@@ -8,7 +8,7 @@ CFLAGS += -Iarch/i386/pci
obj-y := i386.o obj-y := i386.o
obj-$(CONFIG_PCI_DIRECT)+= direct.o obj-$(CONFIG_PCI_DIRECT)+= direct.o
obj-y += fixup.o obj-y += fixup.o
obj-$(CONFIG_ACPI_PCI) += acpi.o obj-$(CONFIG_ACPI) += acpi.o
obj-y += legacy.o irq.o common.o obj-y += legacy.o irq.o common.o
# mmconfig has a 64bit special # mmconfig has a 64bit special
obj-$(CONFIG_PCI_MMCONFIG) += mmconfig.o obj-$(CONFIG_PCI_MMCONFIG) += mmconfig.o
......
...@@ -8,7 +8,7 @@ CFLAGS += -I arch/i386/pci ...@@ -8,7 +8,7 @@ CFLAGS += -I arch/i386/pci
obj-y := i386.o obj-y := i386.o
obj-$(CONFIG_PCI_DIRECT)+= direct.o obj-$(CONFIG_PCI_DIRECT)+= direct.o
obj-y += fixup.o obj-y += fixup.o
obj-$(CONFIG_ACPI_PCI) += acpi.o obj-$(CONFIG_ACPI) += acpi.o
obj-y += legacy.o irq.o common.o obj-y += legacy.o irq.o common.o
# mmconfig has a 64bit special # mmconfig has a 64bit special
obj-$(CONFIG_PCI_MMCONFIG) += mmconfig.o obj-$(CONFIG_PCI_MMCONFIG) += mmconfig.o
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
# #
menu "ACPI (Advanced Configuration and Power Interface) Support" menu "ACPI (Advanced Configuration and Power Interface) Support"
depends on PM
depends on !X86_VISWS depends on !X86_VISWS
depends on !IA64_HP_SIM depends on !IA64_HP_SIM
depends on IA64 || X86 depends on IA64 || X86
...@@ -11,6 +10,8 @@ menu "ACPI (Advanced Configuration and Power Interface) Support" ...@@ -11,6 +10,8 @@ menu "ACPI (Advanced Configuration and Power Interface) Support"
config ACPI config ACPI
bool "ACPI Support" bool "ACPI Support"
depends on IA64 || X86 depends on IA64 || X86
select PM
select PCI
default y default y
---help--- ---help---
...@@ -281,10 +282,6 @@ config ACPI_POWER ...@@ -281,10 +282,6 @@ config ACPI_POWER
bool bool
default y default y
config ACPI_PCI
bool
default PCI
config ACPI_SYSTEM config ACPI_SYSTEM
bool bool
default y default y
......
...@@ -44,7 +44,7 @@ obj-$(CONFIG_ACPI_EC) += ec.o ...@@ -44,7 +44,7 @@ obj-$(CONFIG_ACPI_EC) += ec.o
obj-$(CONFIG_ACPI_FAN) += fan.o obj-$(CONFIG_ACPI_FAN) += fan.o
obj-$(CONFIG_ACPI_VIDEO) += video.o obj-$(CONFIG_ACPI_VIDEO) += video.o
obj-$(CONFIG_ACPI_HOTKEY) += hotkey.o obj-$(CONFIG_ACPI_HOTKEY) += hotkey.o
obj-$(CONFIG_ACPI_PCI) += pci_root.o pci_link.o pci_irq.o pci_bind.o obj-y += pci_root.o pci_link.o pci_irq.o pci_bind.o
obj-$(CONFIG_ACPI_POWER) += power.o obj-$(CONFIG_ACPI_POWER) += power.o
obj-$(CONFIG_ACPI_PROCESSOR) += processor.o obj-$(CONFIG_ACPI_PROCESSOR) += processor.o
obj-$(CONFIG_ACPI_CONTAINER) += container.o obj-$(CONFIG_ACPI_CONTAINER) += container.o
......
...@@ -86,13 +86,11 @@ acpi_status acpi_os_initialize1(void) ...@@ -86,13 +86,11 @@ acpi_status acpi_os_initialize1(void)
* Initialize PCI configuration space access, as we'll need to access * Initialize PCI configuration space access, as we'll need to access
* it while walking the namespace (bus 0 and root bridges w/ _BBNs). * it while walking the namespace (bus 0 and root bridges w/ _BBNs).
*/ */
#ifdef CONFIG_ACPI_PCI
if (!raw_pci_ops) { if (!raw_pci_ops) {
printk(KERN_ERR PREFIX printk(KERN_ERR PREFIX
"Access to PCI configuration space unavailable\n"); "Access to PCI configuration space unavailable\n");
return AE_NULL_ENTRY; return AE_NULL_ENTRY;
} }
#endif
kacpid_wq = create_singlethread_workqueue("kacpid"); kacpid_wq = create_singlethread_workqueue("kacpid");
BUG_ON(!kacpid_wq); BUG_ON(!kacpid_wq);
...@@ -484,8 +482,6 @@ acpi_os_write_memory(acpi_physical_address phys_addr, u32 value, u32 width) ...@@ -484,8 +482,6 @@ acpi_os_write_memory(acpi_physical_address phys_addr, u32 value, u32 width)
return AE_OK; return AE_OK;
} }
#ifdef CONFIG_ACPI_PCI
acpi_status acpi_status
acpi_os_read_pci_configuration(struct acpi_pci_id * pci_id, u32 reg, acpi_os_read_pci_configuration(struct acpi_pci_id * pci_id, u32 reg,
void *value, u32 width) void *value, u32 width)
...@@ -618,30 +614,6 @@ void acpi_os_derive_pci_id(acpi_handle rhandle, /* upper bound */ ...@@ -618,30 +614,6 @@ void acpi_os_derive_pci_id(acpi_handle rhandle, /* upper bound */
acpi_os_derive_pci_id_2(rhandle, chandle, id, &is_bridge, &bus_number); acpi_os_derive_pci_id_2(rhandle, chandle, id, &is_bridge, &bus_number);
} }
#else /*!CONFIG_ACPI_PCI */
acpi_status
acpi_os_write_pci_configuration(struct acpi_pci_id * pci_id,
u32 reg, acpi_integer value, u32 width)
{
return AE_SUPPORT;
}
acpi_status
acpi_os_read_pci_configuration(struct acpi_pci_id * pci_id,
u32 reg, void *value, u32 width)
{
return AE_SUPPORT;
}
void acpi_os_derive_pci_id(acpi_handle rhandle, /* upper bound */
acpi_handle chandle, /* current node */
struct acpi_pci_id **id)
{
}
#endif /*CONFIG_ACPI_PCI */
static void acpi_os_execute_deferred(void *context) static void acpi_os_execute_deferred(void *context)
{ {
struct acpi_os_dpc *dpc = NULL; struct acpi_os_dpc *dpc = NULL;
......
...@@ -47,8 +47,6 @@ ...@@ -47,8 +47,6 @@
PCI PCI
-------------------------------------------------------------------------- */ -------------------------------------------------------------------------- */
#ifdef CONFIG_ACPI_PCI
#define ACPI_PCI_COMPONENT 0x00400000 #define ACPI_PCI_COMPONENT 0x00400000
/* ACPI PCI Interrupt Link (pci_link.c) */ /* ACPI PCI Interrupt Link (pci_link.c) */
...@@ -78,8 +76,6 @@ int acpi_pci_bind_root(struct acpi_device *device, struct acpi_pci_id *id, ...@@ -78,8 +76,6 @@ int acpi_pci_bind_root(struct acpi_device *device, struct acpi_pci_id *id,
struct pci_bus *pci_acpi_scan_root(struct acpi_device *device, int domain, struct pci_bus *pci_acpi_scan_root(struct acpi_device *device, int domain,
int bus); int bus);
#endif /*CONFIG_ACPI_PCI */
/* -------------------------------------------------------------------------- /* --------------------------------------------------------------------------
Power Resource Power Resource
-------------------------------------------------------------------------- */ -------------------------------------------------------------------------- */
......
...@@ -146,13 +146,6 @@ static inline void check_acpi_pci(void) { } ...@@ -146,13 +146,6 @@ static inline void check_acpi_pci(void) { }
#endif #endif
#else /* !CONFIG_ACPI */
# define acpi_lapic 0
# define acpi_ioapic 0
#endif
#ifdef CONFIG_ACPI_PCI
static inline void acpi_noirq_set(void) { acpi_noirq = 1; } static inline void acpi_noirq_set(void) { acpi_noirq = 1; }
static inline void acpi_disable_pci(void) static inline void acpi_disable_pci(void)
{ {
...@@ -160,11 +153,16 @@ static inline void acpi_disable_pci(void) ...@@ -160,11 +153,16 @@ static inline void acpi_disable_pci(void)
acpi_noirq_set(); acpi_noirq_set();
} }
extern int acpi_irq_balance_set(char *str); extern int acpi_irq_balance_set(char *str);
#else
#else /* !CONFIG_ACPI */
#define acpi_lapic 0
#define acpi_ioapic 0
static inline void acpi_noirq_set(void) { } static inline void acpi_noirq_set(void) { }
static inline void acpi_disable_pci(void) { } static inline void acpi_disable_pci(void) { }
static inline int acpi_irq_balance_set(char *str) { return 0; }
#endif #endif /* !CONFIG_ACPI */
#ifdef CONFIG_ACPI_SLEEP #ifdef CONFIG_ACPI_SLEEP
......
...@@ -121,17 +121,6 @@ static inline void disable_acpi(void) ...@@ -121,17 +121,6 @@ static inline void disable_acpi(void)
#define FIX_ACPI_PAGES 4 #define FIX_ACPI_PAGES 4
extern int acpi_gsi_to_irq(u32 gsi, unsigned int *irq); extern int acpi_gsi_to_irq(u32 gsi, unsigned int *irq);
#else /* !CONFIG_ACPI */
#define acpi_lapic 0
#define acpi_ioapic 0
#endif /* !CONFIG_ACPI */
extern int acpi_numa;
extern int acpi_scan_nodes(unsigned long start, unsigned long end);
#define NR_NODE_MEMBLKS (MAX_NUMNODES*2)
#ifdef CONFIG_ACPI_PCI
static inline void acpi_noirq_set(void) { acpi_noirq = 1; } static inline void acpi_noirq_set(void) { acpi_noirq = 1; }
static inline void acpi_disable_pci(void) static inline void acpi_disable_pci(void)
{ {
...@@ -139,11 +128,19 @@ static inline void acpi_disable_pci(void) ...@@ -139,11 +128,19 @@ static inline void acpi_disable_pci(void)
acpi_noirq_set(); acpi_noirq_set();
} }
extern int acpi_irq_balance_set(char *str); extern int acpi_irq_balance_set(char *str);
#else
#else /* !CONFIG_ACPI */
#define acpi_lapic 0
#define acpi_ioapic 0
static inline void acpi_noirq_set(void) { } static inline void acpi_noirq_set(void) { }
static inline void acpi_disable_pci(void) { } static inline void acpi_disable_pci(void) { }
static inline int acpi_irq_balance_set(char *str) { return 0; }
#endif #endif /* !CONFIG_ACPI */
extern int acpi_numa;
extern int acpi_scan_nodes(unsigned long start, unsigned long end);
#define NR_NODE_MEMBLKS (MAX_NUMNODES*2)
#ifdef CONFIG_ACPI_SLEEP #ifdef CONFIG_ACPI_SLEEP
......
...@@ -445,7 +445,7 @@ int acpi_gsi_to_irq (u32 gsi, unsigned int *irq); ...@@ -445,7 +445,7 @@ int acpi_gsi_to_irq (u32 gsi, unsigned int *irq);
*/ */
void acpi_unregister_gsi (u32 gsi); void acpi_unregister_gsi (u32 gsi);
#ifdef CONFIG_ACPI_PCI #ifdef CONFIG_ACPI
struct acpi_prt_entry { struct acpi_prt_entry {
struct list_head node; struct list_head node;
...@@ -479,7 +479,7 @@ struct acpi_pci_driver { ...@@ -479,7 +479,7 @@ struct acpi_pci_driver {
int acpi_pci_register_driver(struct acpi_pci_driver *driver); int acpi_pci_register_driver(struct acpi_pci_driver *driver);
void acpi_pci_unregister_driver(struct acpi_pci_driver *driver); void acpi_pci_unregister_driver(struct acpi_pci_driver *driver);
#endif /*CONFIG_ACPI_PCI*/ #endif /* CONFIG_ACPI */
#ifdef CONFIG_ACPI_EC #ifdef CONFIG_ACPI_EC
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment