summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@enix.org>2008-08-19 10:28:24 +0200
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-08-27 15:52:43 -0700
commit9da5bc7b975915d2b3fba2f11d5e762d1e5a7da7 (patch)
tree7b0774eecda2e4d1e1e2978e385f31f161ed8140 /init
parent2ea4851c5a950cb7ca7a3c9de8ac6b24aa3670e8 (diff)
PCI: allow quirks to be compiled out
This patch adds the CONFIG_PCI_QUIRKS option which allows to remove all the PCI quirks, which are not necessarily used on embedded systems when PCI is working properly. As this is a size-reduction option, it depends on CONFIG_EMBEDDED. It allows to save almost 12 kilobytes of kernel code: text data bss dec hex filename 1287806 123596 212992 1624394 18c94a vmlinux.old 1275854 123596 212992 1612442 189a9a vmlinux -11952 0 0 -11952 -2EB0 +/- This patch has originally been written by Zwane Mwaikambo <zwane@arm.linux.org.uk> and is part of the Linux Tiny project. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index c11da38837e5..584dc77babfc 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -722,6 +722,14 @@ config VM_EVENT_COUNTERS
on EMBEDDED systems. /proc/vmstat will only show page counts
if VM event counters are disabled.
+config PCI_QUIRKS
+ default y
+ bool "Enable PCI quirk workarounds" if EMBEDDED && PCI
+ help
+ This enables workarounds for various PCI chipset
+ bugs/quirks. Disable this only if your target machine is
+ unaffected by PCI quirks.
+
config SLUB_DEBUG
default y
bool "Enable SLUB debugging support" if EMBEDDED