diff options
author | Mark Brown <[email protected]> | 2022-11-15 09:46:40 +0000 |
---|---|---|
committer | Will Deacon <[email protected]> | 2022-11-29 15:01:56 +0000 |
commit | 1192b93ba3528feaf37dc4b5d8d6bdbb475791ad (patch) | |
tree | 455f71f5dfe062ea1467d560f6e60ca692c2d4da /arch/arm64/include/asm/processor.h | |
parent | 8c845e2731041f0fdf9287dea80b039b26332c9f (diff) |
arm64/fp: Use a struct to pass data to fpsimd_bind_state_to_cpu()
For reasons that are unclear to this reader fpsimd_bind_state_to_cpu()
populates the struct fpsimd_last_state_struct that it uses to store the
active floating point state for KVM guests by passing an argument for
each member of the structure. As the richness of the architecture increases
this is resulting in a function with a rather large number of arguments
which isn't ideal.
Simplify the interface by using the struct directly as the single argument
for the function, renaming it as we lift the definition into the header.
This could be built on further to reduce the work we do adding storage for
new FP state in various places but for now it just simplifies this one
interface.
Signed-off-by: Mark Brown <[email protected]>
Reviewed-by: Catalin Marinas <[email protected]>
Reviewed-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'arch/arm64/include/asm/processor.h')
0 files changed, 0 insertions, 0 deletions