Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14807
b: refs/heads/master
c: 9f232a1
h: refs/heads/master
i:
  14805: 608f9e6
  14803: 61aac04
  14799: 3cd3470
v: v3
  • Loading branch information
Paolo Galtieri authored and Linus Torvalds committed Nov 30, 2005
1 parent aea354c commit 5c89aca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 123d3c13e2853a11b4d599d754b356acb12886e2
refs/heads/master: 9f232a125bf86b0dae09f8ea4a0553535cf6b658
6 changes: 6 additions & 0 deletions trunk/arch/ppc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ void show_regs(struct pt_regs * regs)

void exit_thread(void)
{
preempt_disable();
if (last_task_used_math == current)
last_task_used_math = NULL;
if (last_task_used_altivec == current)
Expand All @@ -425,10 +426,12 @@ void exit_thread(void)
if (last_task_used_spe == current)
last_task_used_spe = NULL;
#endif
preempt_enable();
}

void flush_thread(void)
{
preempt_disable();
if (last_task_used_math == current)
last_task_used_math = NULL;
if (last_task_used_altivec == current)
Expand All @@ -437,6 +440,7 @@ void flush_thread(void)
if (last_task_used_spe == current)
last_task_used_spe = NULL;
#endif
preempt_enable();
}

void
Expand Down Expand Up @@ -535,6 +539,7 @@ void start_thread(struct pt_regs *regs, unsigned long nip, unsigned long sp)
regs->nip = nip;
regs->gpr[1] = sp;
regs->msr = MSR_USER;
preempt_disable();
if (last_task_used_math == current)
last_task_used_math = NULL;
if (last_task_used_altivec == current)
Expand All @@ -543,6 +548,7 @@ void start_thread(struct pt_regs *regs, unsigned long nip, unsigned long sp)
if (last_task_used_spe == current)
last_task_used_spe = NULL;
#endif
preempt_enable();
memset(current->thread.fpr, 0, sizeof(current->thread.fpr));
current->thread.fpscr.val = 0;
#ifdef CONFIG_ALTIVEC
Expand Down

0 comments on commit 5c89aca

Please sign in to comment.