Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206192
b: refs/heads/master
c: 82d4150
h: refs/heads/master
v: v3
  • Loading branch information
Robert Richter authored and H. Peter Anvin committed Jul 20, 2010
1 parent 29ffbe4 commit 6f9e4b4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: db10db48b2c530def21bfd76d576702c7df7f620
refs/heads/master: 82d4150cec83b9775f84810b39a1c0b91585d429
6 changes: 0 additions & 6 deletions trunk/arch/x86/kernel/cpu/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1270,12 +1270,6 @@ void __cpuinit cpu_init(void)
clear_used_math();
mxcsr_feature_mask_init();

/*
* Boot processor to setup the FP and extended state context info.
*/
if (!smp_processor_id())
init_thread_xstate();

xsave_init();
}
#endif
5 changes: 0 additions & 5 deletions trunk/arch/x86/kernel/i387.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ void __cpuinit fpu_init(void)

write_cr0(oldcr0 & ~(X86_CR0_TS|X86_CR0_EM)); /* clear TS and EM */

/*
* Boot processor to setup the FP and extended state context info.
*/
if (!smp_processor_id())
init_thread_xstate();
xsave_init();

mxcsr_feature_mask_init();
Expand Down
14 changes: 12 additions & 2 deletions trunk/arch/x86/kernel/xsave.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ unsigned int sig_xstate_size = sizeof(struct _fpstate);
/*
* Enable the extended processor state save/restore feature
*/
void __cpuinit xsave_init(void)
static void __cpuinit __xsave_init(void)
{
if (!cpu_has_xsave)
return;
Expand Down Expand Up @@ -446,7 +446,7 @@ void __ref xsave_cntxt_init(void)
* Support only the state known to OS.
*/
pcntxt_mask = pcntxt_mask & XCNTXT_MASK;
xsave_init();
__xsave_init();

/*
* Recompute the context size for enabled features
Expand All @@ -463,3 +463,13 @@ void __ref xsave_cntxt_init(void)
"cntxt size 0x%x\n",
pcntxt_mask, xstate_size);
}

void __cpuinit xsave_init(void)
{
/*
* Boot processor to setup the FP and extended state context info.
*/
if (!smp_processor_id())
init_thread_xstate();
__xsave_init();
}

0 comments on commit 6f9e4b4

Please sign in to comment.