Skip to content

Commit 55a36b6

Browse files
committed
x86: Fold-in trivial check_config function
Fold it into its single call site. No functionality change. Signed-off-by: Borislav Petkov <bp@suse.de> Link: http://lkml.kernel.org/r/1365436666-9837-3-git-send-email-bp@alien8.de Signed-off-by: H. Peter Anvin <hpa@zytor.com>
1 parent 7d7dc11 commit 55a36b6

1 file changed

Lines changed: 11 additions & 16 deletions

File tree

‎arch/x86/kernel/cpu/bugs.c‎

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -81,29 +81,24 @@ static void __init check_fpu(void)
8181
}
8282
}
8383

84-
/*
85-
* Check whether we are able to run this kernel safely on SMP.
86-
*
87-
* - i386 is no longer supported.
88-
* - In order to run on anything without a TSC, we need to be
89-
* compiled for a i486.
90-
*/
91-
92-
static void __init check_config(void)
93-
{
94-
if (boot_cpu_data.x86 < 4)
95-
panic("Kernel requires i486+ for 'invlpg' and other features");
96-
}
97-
98-
9984
void __init check_bugs(void)
10085
{
10186
identify_boot_cpu();
10287
#ifndef CONFIG_SMP
10388
pr_info("CPU: ");
10489
print_cpu_info(&boot_cpu_data);
10590
#endif
106-
check_config();
91+
92+
/*
93+
* Check whether we are able to run this kernel safely on SMP.
94+
*
95+
* - i386 is no longer supported.
96+
* - In order to run on anything without a TSC, we need to be
97+
* compiled for a i486.
98+
*/
99+
if (boot_cpu_data.x86 < 4)
100+
panic("Kernel requires i486+ for 'invlpg' and other features");
101+
107102
init_utsname()->machine[1] =
108103
'0' + (boot_cpu_data.x86 > 6 ? 6 : boot_cpu_data.x86);
109104
alternative_instructions();

0 commit comments

Comments
 (0)