summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/ptrace32.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-12-05 14:47:25 +0100
committer <ralf@denk.linux-mips.net>2006-01-10 14:39:04 +0100
commit6c35585273b26a580b2e2ad3d6a7db282308eec5 (patch)
treeae81213a06a1f2728050319b47f51308d9d197ca /arch/mips/kernel/ptrace32.c
parentMIPS: DSP: Context switch the DSPcontrol register also. (diff)
downloadlinux-6c35585273b26a580b2e2ad3d6a7db282308eec5.tar.xz
linux-6c35585273b26a580b2e2ad3d6a7db282308eec5.zip
MIPS: DSP: eleminate used_dsp.
used_dsp was meant to be used like used_math - but since the FPU context is small and lazy context switching is a stupid idea on multiprocessors this idea only got halfway implemented and those bits are were now breaking ptrace. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/ptrace32.c')
-rw-r--r--arch/mips/kernel/ptrace32.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/mips/kernel/ptrace32.c b/arch/mips/kernel/ptrace32.c
index 7e55457a491f..1f998bfde165 100644
--- a/arch/mips/kernel/ptrace32.c
+++ b/arch/mips/kernel/ptrace32.c
@@ -201,12 +201,8 @@ asmlinkage int sys32_ptrace(int request, int pid, int addr, int data)
ret = -EIO;
goto out_tsk;
}
- if (child->thread.dsp.used_dsp) {
- dspreg_t *dregs = __get_dsp_regs(child);
- tmp = (unsigned long) (dregs[addr - DSP_BASE]);
- } else {
- tmp = -1; /* DSP registers yet used */
- }
+ dspreg_t *dregs = __get_dsp_regs(child);
+ tmp = (unsigned long) (dregs[addr - DSP_BASE]);
break;
case DSP_CONTROL:
if (!cpu_has_dsp) {