powerpc: Remove fpscr use from [kvm_]cvt_{fd,df}
Neither lfs nor stfs touch the fpscr, so remove the restore/save of it around them. Signed-off-by: Andreas Schwab <schwab@linux-m68k.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
872e439a45
commit
05d77ac90c
@@ -889,7 +889,7 @@ int fix_alignment(struct pt_regs *regs)
|
||||
#ifdef CONFIG_PPC_FPU
|
||||
preempt_disable();
|
||||
enable_kernel_fp();
|
||||
cvt_df(&data.dd, (float *)&data.v[4], ¤t->thread);
|
||||
cvt_df(&data.dd, (float *)&data.v[4]);
|
||||
preempt_enable();
|
||||
#else
|
||||
return 0;
|
||||
@@ -933,7 +933,7 @@ int fix_alignment(struct pt_regs *regs)
|
||||
#ifdef CONFIG_PPC_FPU
|
||||
preempt_disable();
|
||||
enable_kernel_fp();
|
||||
cvt_fd((float *)&data.v[4], &data.dd, ¤t->thread);
|
||||
cvt_fd((float *)&data.v[4], &data.dd);
|
||||
preempt_enable();
|
||||
#else
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user