diff options
author | Jan Beulich <JBeulich@novell.com> | 2010-11-04 15:23:58 +0000 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-11-10 10:08:26 +0100 |
commit | 2f62bf7d238f6dfa39faf24c746d0b8dd60f85c5 (patch) | |
tree | 2cb5c2652b7aa33d943fb2daffbd55beccb7d931 /arch/x86 | |
parent | 62b0cfc240b1d4601333912ef8760e0ca9ec2cec (diff) | |
download | kernel_samsung_smdk4412-2f62bf7d238f6dfa39faf24c746d0b8dd60f85c5.zip kernel_samsung_smdk4412-2f62bf7d238f6dfa39faf24c746d0b8dd60f85c5.tar.gz kernel_samsung_smdk4412-2f62bf7d238f6dfa39faf24c746d0b8dd60f85c5.tar.bz2 |
x86: Adjust section annotations in AMD Fam10 MMCONF enabling code
check_enable_amd_mmconf_dmi() gets called only for the BSP,
hence everything hanging off of it can be __init*.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <4CD2DE1E0200007800020990@vpn.id2.novell.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/mmconf-fam10h_64.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/x86/kernel/mmconf-fam10h_64.c b/arch/x86/kernel/mmconf-fam10h_64.c index 7182580..6da143c 100644 --- a/arch/x86/kernel/mmconf-fam10h_64.c +++ b/arch/x86/kernel/mmconf-fam10h_64.c @@ -217,13 +217,13 @@ void __cpuinit fam10h_check_enable_mmcfg(void) wrmsrl(address, val); } -static int __devinit set_check_enable_amd_mmconf(const struct dmi_system_id *d) +static int __init set_check_enable_amd_mmconf(const struct dmi_system_id *d) { pci_probe |= PCI_CHECK_ENABLE_AMD_MMCONF; return 0; } -static const struct dmi_system_id __cpuinitconst mmconf_dmi_table[] = { +static const struct dmi_system_id __initconst mmconf_dmi_table[] = { { .callback = set_check_enable_amd_mmconf, .ident = "Sun Microsystems Machine", @@ -234,7 +234,8 @@ static const struct dmi_system_id __cpuinitconst mmconf_dmi_table[] = { {} }; -void __cpuinit check_enable_amd_mmconf_dmi(void) +/* Called from a __cpuinit function, but only on the BSP. */ +void __ref check_enable_amd_mmconf_dmi(void) { dmi_check_system(mmconf_dmi_table); } |