mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
x86/fpu: Mark init functions __init
commit 1703db2b90 upstream
No point in keeping them around.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230613224545.841685728@linutronix.de
Signed-off-by: Daniel Sneddon <daniel.sneddon@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7a2f42bce9
commit
2462bc3ef0
@@ -49,7 +49,7 @@ void fpu__init_cpu(void)
|
|||||||
fpu__init_cpu_xstate();
|
fpu__init_cpu_xstate();
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool fpu__probe_without_cpuid(void)
|
static bool __init fpu__probe_without_cpuid(void)
|
||||||
{
|
{
|
||||||
unsigned long cr0;
|
unsigned long cr0;
|
||||||
u16 fsw, fcw;
|
u16 fsw, fcw;
|
||||||
@@ -67,7 +67,7 @@ static bool fpu__probe_without_cpuid(void)
|
|||||||
return fsw == 0 && (fcw & 0x103f) == 0x003f;
|
return fsw == 0 && (fcw & 0x103f) == 0x003f;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void fpu__init_system_early_generic(void)
|
static void __init fpu__init_system_early_generic(void)
|
||||||
{
|
{
|
||||||
if (!boot_cpu_has(X86_FEATURE_CPUID) &&
|
if (!boot_cpu_has(X86_FEATURE_CPUID) &&
|
||||||
!test_bit(X86_FEATURE_FPU, (unsigned long *)cpu_caps_cleared)) {
|
!test_bit(X86_FEATURE_FPU, (unsigned long *)cpu_caps_cleared)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user