Skip to content

Commit b53223e

Browse files
brooniewilldeacon
authored andcommitted
arm64/sve: Remove sve_load_from_fpsimd_state()
Following optimisations of the SVE register handling we no longer load the SVE state from a saved copy of the FPSIMD registers, we convert directly in registers or from one saved state to another. Remove the function so we don't need to update it during further refactoring. Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 2d481bd commit b53223e

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

arch/arm64/include/asm/fpsimd.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ extern void sve_save_state(void *state, u32 *pfpsr);
6969
extern void sve_load_state(void const *state, u32 const *pfpsr,
7070
unsigned long vq_minus_1);
7171
extern void sve_flush_live(unsigned long vq_minus_1);
72-
extern void sve_load_from_fpsimd_state(struct user_fpsimd_state const *state,
73-
unsigned long vq_minus_1);
7472
extern unsigned int sve_get_vl(void);
7573
extern void sve_set_vq(unsigned long vq_minus_1);
7674

arch/arm64/kernel/entry-fpsimd.S

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -66,22 +66,6 @@ SYM_FUNC_START(sve_set_vq)
6666
ret
6767
SYM_FUNC_END(sve_set_vq)
6868

69-
/*
70-
* Load SVE state from FPSIMD state.
71-
*
72-
* x0 = pointer to struct fpsimd_state
73-
* x1 = VQ - 1
74-
*
75-
* Each SVE vector will be loaded with the first 128-bits taken from FPSIMD
76-
* and the rest zeroed. All the other SVE registers will be zeroed.
77-
*/
78-
SYM_FUNC_START(sve_load_from_fpsimd_state)
79-
sve_load_vq x1, x2, x3
80-
fpsimd_restore x0, 8
81-
sve_flush_p_ffr
82-
ret
83-
SYM_FUNC_END(sve_load_from_fpsimd_state)
84-
8569
/*
8670
* Zero all SVE registers but the first 128-bits of each vector
8771
*

0 commit comments

Comments
 (0)