diff options
author | Jan Beulich <JBeulich@novell.com> | 2011-02-09 03:26:53 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-02-10 07:32:52 -0500 |
commit | 691269f0d918cd72454c254f97722f194c07b9a8 (patch) | |
tree | bff65907c36cb8f8a3dc60796baf5964a547ba0e /arch/x86/kernel/amd_nb.c | |
parent | cabb5bd7ff4d6963ec9e67f958fc30e7815425e6 (diff) |
x86: Adjust section placement in AMD northbridge related code
amd_nb_misc_ids[] can live in .rodata, and enable_pci_io_ecs()
can be moved into .cpuinit.text.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Cc: Hans Rosenfeld <hans.rosenfeld@amd.com>
Cc: Andreas Herrmann <Andreas.Herrmann3@amd.com>
Cc: Borislav Petkov <borislav.petkov@amd.com>
LKML-Reference: <4D525DDD0200007800030F07@vpn.id2.novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/amd_nb.c')
-rw-r--r-- | arch/x86/kernel/amd_nb.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/x86/kernel/amd_nb.c b/arch/x86/kernel/amd_nb.c index bf79a4a6ee22..ed3c2e5b714a 100644 --- a/arch/x86/kernel/amd_nb.c +++ b/arch/x86/kernel/amd_nb.c | |||
@@ -12,7 +12,7 @@ | |||
12 | 12 | ||
13 | static u32 *flush_words; | 13 | static u32 *flush_words; |
14 | 14 | ||
15 | struct pci_device_id amd_nb_misc_ids[] = { | 15 | const struct pci_device_id amd_nb_misc_ids[] = { |
16 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_K8_NB_MISC) }, | 16 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_K8_NB_MISC) }, |
17 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_10H_NB_MISC) }, | 17 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_10H_NB_MISC) }, |
18 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_15H_NB_MISC) }, | 18 | { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_15H_NB_MISC) }, |
@@ -36,7 +36,7 @@ struct amd_northbridge_info amd_northbridges; | |||
36 | EXPORT_SYMBOL(amd_northbridges); | 36 | EXPORT_SYMBOL(amd_northbridges); |
37 | 37 | ||
38 | static struct pci_dev *next_northbridge(struct pci_dev *dev, | 38 | static struct pci_dev *next_northbridge(struct pci_dev *dev, |
39 | struct pci_device_id *ids) | 39 | const struct pci_device_id *ids) |
40 | { | 40 | { |
41 | do { | 41 | do { |
42 | dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev); | 42 | dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev); |
@@ -107,8 +107,9 @@ EXPORT_SYMBOL_GPL(amd_cache_northbridges); | |||
107 | they're useless anyways */ | 107 | they're useless anyways */ |
108 | int __init early_is_amd_nb(u32 device) | 108 | int __init early_is_amd_nb(u32 device) |
109 | { | 109 | { |
110 | struct pci_device_id *id; | 110 | const struct pci_device_id *id; |
111 | u32 vendor = device & 0xffff; | 111 | u32 vendor = device & 0xffff; |
112 | |||
112 | device >>= 16; | 113 | device >>= 16; |
113 | for (id = amd_nb_misc_ids; id->vendor; id++) | 114 | for (id = amd_nb_misc_ids; id->vendor; id++) |
114 | if (vendor == id->vendor && device == id->device) | 115 | if (vendor == id->vendor && device == id->device) |