#endif
extern unsigned int mxcsr_feature_mask;
-extern void fpu_init(void);
+extern void fpu__cpu_init(void);
extern void eager_fpu_init(void);
DECLARE_PER_CPU(struct task_struct *, fpu_owner_task);
clear_all_debug_regs();
dbg_restore_debug_regs();
- fpu_init();
+ fpu__cpu_init();
if (is_uv_system())
uv_cpu_init();
clear_all_debug_regs();
dbg_restore_debug_regs();
- fpu_init();
+ fpu__cpu_init();
}
#endif
}
/*
- * Called at bootup to set up the initial FPU state that is later cloned
- * into all processes.
+ * Called on the boot CPU at bootup to set up the initial FPU state that
+ * is later cloned into all processes.
+ *
+ * Also called on secondary CPUs to set up the FPU state of their
+ * idle threads.
*/
-
-void fpu_init(void)
+void fpu__cpu_init(void)
{
unsigned long cr0;
unsigned long cr4_mask = 0;
return;
/*
* For BSP, PSE PGE are set in probe_page_size_mask(), for APs
- * set them here. For all, OSFXSR OSXMMEXCPT are set in fpu_init.
+ * set them here. For all, OSFXSR OSXMMEXCPT are set in fpu__cpu_init().
*/
if (cpu_has_pse)
cr4_set_bits_and_update_boot(X86_CR4_PSE);