diff options
author | Thomas Petazzoni <thomas.petazzoni@enix.org> | 2008-08-19 04:28:24 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-10-20 13:53:40 -0400 |
commit | 3d137310245e4cdc3e8c8ba1bea2e145a87ae8e3 (patch) | |
tree | 478a5864216e1ddca3df9a2d08bde0d8ea4523a5 /init/Kconfig | |
parent | b41d6cf38e27a940d998d989526a9748de1bf028 (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/Kconfig')
-rw-r--r-- | init/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig index 8828ed0b2051..06330a305249 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -737,6 +737,14 @@ config VM_EVENT_COUNTERS | |||
737 | on EMBEDDED systems. /proc/vmstat will only show page counts | 737 | on EMBEDDED systems. /proc/vmstat will only show page counts |
738 | if VM event counters are disabled. | 738 | if VM event counters are disabled. |
739 | 739 | ||
740 | config PCI_QUIRKS | ||
741 | default y | ||
742 | bool "Enable PCI quirk workarounds" if EMBEDDED && PCI | ||
743 | help | ||
744 | This enables workarounds for various PCI chipset | ||
745 | bugs/quirks. Disable this only if your target machine is | ||
746 | unaffected by PCI quirks. | ||
747 | |||
740 | config SLUB_DEBUG | 748 | config SLUB_DEBUG |
741 | default y | 749 | default y |
742 | bool "Enable SLUB debugging support" if EMBEDDED | 750 | bool "Enable SLUB debugging support" if EMBEDDED |