Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212038
b: refs/heads/master
c: a4d4fbc
h: refs/heads/master
v: v3
  • Loading branch information
Brian Gerst authored and H. Peter Anvin committed Sep 9, 2010
1 parent 006c310 commit fc30105
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 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: bfd946cb891800d408decaae268a3480775178a3
refs/heads/master: a4d4fbc7735bba6654b20f859135f9d3f8fe7f76
15 changes: 0 additions & 15 deletions trunk/arch/x86/include/asm/i387.h
Original file line number Diff line number Diff line change
Expand Up @@ -387,19 +387,6 @@ static inline void irq_ts_restore(int TS_state)
stts();
}

#ifdef CONFIG_X86_64

static inline void save_init_fpu(struct task_struct *tsk)
{
__save_init_fpu(tsk);
stts();
}

#define unlazy_fpu __unlazy_fpu
#define clear_fpu __clear_fpu

#else /* CONFIG_X86_32 */

/*
* These disable preemption on their own and are safe
*/
Expand All @@ -425,8 +412,6 @@ static inline void clear_fpu(struct task_struct *tsk)
preempt_enable();
}

#endif /* CONFIG_X86_64 */

/*
* i387 state interaction
*/
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/process_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
load_TLS(next, cpu);

/* Must be after DS reload */
unlazy_fpu(prev_p);
__unlazy_fpu(prev_p);

/* Make sure cpu is ready for new context */
if (preload_fpu)
Expand Down

0 comments on commit fc30105

Please sign in to comment.