提交 821508d4 编写于 作者: J Jan Beulich 提交者: Ingo Molnar

x86: move a few device initialization objects into .devinit.rodata

Impact: debuggability and micro-optimization

Putting whatever is possible into the (final) .rodata section increases
the likelihood of catching memory corruption bugs early, and reduces
false cache line sharing.
Signed-off-by: NJan Beulich <jbeulich@novell.com>
LKML-Reference: <49B909A5.76E4.0078.0@novell.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 a98fe7f3
...@@ -90,7 +90,7 @@ static int __devinit can_skip_ioresource_align(const struct dmi_system_id *d) ...@@ -90,7 +90,7 @@ static int __devinit can_skip_ioresource_align(const struct dmi_system_id *d)
return 0; return 0;
} }
static struct dmi_system_id can_skip_pciprobe_dmi_table[] __devinitdata = { static const struct dmi_system_id can_skip_pciprobe_dmi_table[] __devinitconst = {
/* /*
* Systems where PCI IO resource ISA alignment can be skipped * Systems where PCI IO resource ISA alignment can be skipped
* when the ISA enable bit in the bridge control is not set * when the ISA enable bit in the bridge control is not set
...@@ -183,7 +183,7 @@ static int __devinit assign_all_busses(const struct dmi_system_id *d) ...@@ -183,7 +183,7 @@ static int __devinit assign_all_busses(const struct dmi_system_id *d)
} }
#endif #endif
static struct dmi_system_id __devinitdata pciprobe_dmi_table[] = { static const struct dmi_system_id __devinitconst pciprobe_dmi_table[] = {
#ifdef __i386__ #ifdef __i386__
/* /*
* Laptops which need pci=assign-busses to see Cardbus cards * Laptops which need pci=assign-busses to see Cardbus cards
......
...@@ -356,7 +356,7 @@ static void __devinit pci_fixup_video(struct pci_dev *pdev) ...@@ -356,7 +356,7 @@ static void __devinit pci_fixup_video(struct pci_dev *pdev)
DECLARE_PCI_FIXUP_FINAL(PCI_ANY_ID, PCI_ANY_ID, pci_fixup_video); DECLARE_PCI_FIXUP_FINAL(PCI_ANY_ID, PCI_ANY_ID, pci_fixup_video);
static struct dmi_system_id __devinitdata msi_k8t_dmi_table[] = { static const struct dmi_system_id __devinitconst msi_k8t_dmi_table[] = {
{ {
.ident = "MSI-K8T-Neo2Fir", .ident = "MSI-K8T-Neo2Fir",
.matches = { .matches = {
...@@ -413,7 +413,7 @@ DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237, ...@@ -413,7 +413,7 @@ DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237,
*/ */
static u16 toshiba_line_size; static u16 toshiba_line_size;
static struct dmi_system_id __devinitdata toshiba_ohci1394_dmi_table[] = { static const struct dmi_system_id __devinitconst toshiba_ohci1394_dmi_table[] = {
{ {
.ident = "Toshiba PS5 based laptop", .ident = "Toshiba PS5 based laptop",
.matches = { .matches = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册