Skip to content

Commit a93fdaf

Browse files
AndybnACTpalmer-dabbelt
authored andcommitted
riscv: fpu: drop SR_SD bit checking
SR_SD summarizes the dirty status of FS/VS/XS. However, the current code structure does not fully utilize it because each extension specific code is divided into an individual segment. So remove the SR_SD check for now. Signed-off-by: Andy Chiu <[email protected]> Reviewed-by: Song Shuai <[email protected]> Reviewed-by: Guo Ren <[email protected]> Tested-by: Björn Töpel <[email protected]> Tested-by: Lad Prabhakar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent c2a658d commit a93fdaf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/riscv/include/asm/switch_to.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ static inline void __switch_to_fpu(struct task_struct *prev,
5353
struct pt_regs *regs;
5454

5555
regs = task_pt_regs(prev);
56-
if (unlikely(regs->status & SR_SD))
57-
fstate_save(prev, regs);
56+
fstate_save(prev, regs);
5857
fstate_restore(next, task_pt_regs(next));
5958
}
6059

0 commit comments

Comments
 (0)