PCI: prepare pci=realloc for multiple options
authorYinghai Lu <yinghai@kernel.org>
Fri, 24 Feb 2012 03:23:30 +0000 (19:23 -0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 24 Feb 2012 16:47:42 +0000 (08:47 -0800)
commitb55438fdd5173a367659a7e200acea6c9f77b8cb
treefbcb4ac2e03abcf6933b18fce56361adbcda84af
parent0c5be0cb0edfe3b5c4b62eac68aa2aa15ec681af
PCI: prepare pci=realloc for multiple options

Let the user could enable and disable with pci=realloc=on or pci=realloc=off

Also
1. move variable and functions near the place they are used.
2. change macro to function
3. change related functions and variable to static and _init
4. update parameter description accordingly.

This will let us add a config option to control default behavior, and
still allow the user to turn off automatic reallocation if it fails on
their platform until a permanent solution is found.

-v2: still honor pci=realloc, and treat it as pci=realloc=on
     also use enum instead of ...
-v3: update kernel-paramenters.txt according to Jesse.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Documentation/kernel-parameters.txt
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/setup-bus.c
This page took 0.024699 seconds and 5 git commands to generate.