diff options
author | Mathias Krause <minipli@googlemail.com> | 2014-08-25 17:26:37 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-09-24 08:46:17 -0400 |
commit | 776f7ad6322817a5a021c5c479d688d322fb4b27 (patch) | |
tree | d3681b4df376c9ea6c5acf5ffe0b02f1b90356af /arch/x86/pci/mmconfig-shared.c | |
parent | 64474b5235e83cc5e6002dcdb37145850ad86194 (diff) |
x86/PCI: Mark constants of pci_mmcfg_nvidia_mcp55() as __initconst
The constants in pci_mmcfg_nvidia_mcp55() need to be marked as __initconst
or they will remain in memory after init memory was released.
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/pci/mmconfig-shared.c')
-rw-r--r-- | arch/x86/pci/mmconfig-shared.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/arch/x86/pci/mmconfig-shared.c b/arch/x86/pci/mmconfig-shared.c index 163ef6bf1678..63fc0d4d5892 100644 --- a/arch/x86/pci/mmconfig-shared.c +++ b/arch/x86/pci/mmconfig-shared.c | |||
@@ -240,16 +240,20 @@ static const char *__init pci_mmcfg_nvidia_mcp55(void) | |||
240 | int bus; | 240 | int bus; |
241 | int mcp55_mmconf_found = 0; | 241 | int mcp55_mmconf_found = 0; |
242 | 242 | ||
243 | static const u32 extcfg_regnum = 0x90; | 243 | static const u32 extcfg_regnum __initconst = 0x90; |
244 | static const u32 extcfg_regsize = 4; | 244 | static const u32 extcfg_regsize __initconst = 4; |
245 | static const u32 extcfg_enable_mask = 1<<31; | 245 | static const u32 extcfg_enable_mask __initconst = 1 << 31; |
246 | static const u32 extcfg_start_mask = 0xff<<16; | 246 | static const u32 extcfg_start_mask __initconst = 0xff << 16; |
247 | static const int extcfg_start_shift = 16; | 247 | static const int extcfg_start_shift __initconst = 16; |
248 | static const u32 extcfg_size_mask = 0x3<<28; | 248 | static const u32 extcfg_size_mask __initconst = 0x3 << 28; |
249 | static const int extcfg_size_shift = 28; | 249 | static const int extcfg_size_shift __initconst = 28; |
250 | static const int extcfg_sizebus[] = {0x100, 0x80, 0x40, 0x20}; | 250 | static const int extcfg_sizebus[] __initconst = { |
251 | static const u32 extcfg_base_mask[] = {0x7ff8, 0x7ffc, 0x7ffe, 0x7fff}; | 251 | 0x100, 0x80, 0x40, 0x20 |
252 | static const int extcfg_base_lshift = 25; | 252 | }; |
253 | static const u32 extcfg_base_mask[] __initconst = { | ||
254 | 0x7ff8, 0x7ffc, 0x7ffe, 0x7fff | ||
255 | }; | ||
256 | static const int extcfg_base_lshift __initconst = 25; | ||
253 | 257 | ||
254 | /* | 258 | /* |
255 | * do check if amd fam10h already took over | 259 | * do check if amd fam10h already took over |