arm64: fpsimd: Abstract out binding of task's fpsimd context to the cpu.
authorDave Martin <Dave.Martin@arm.com>
Wed, 6 Dec 2017 16:45:46 +0000 (16:45 +0000)
committerWill Deacon <will.deacon@arm.com>
Wed, 6 Dec 2017 18:28:10 +0000 (18:28 +0000)
commit8884b7bd7e52de20a801c5f457954ed212c0f625
treeebd1dc9179bfdc17ab64bcff4cb8306e1eb53e48
parent071b6d4a5d343046f253a5a8835d477d93992002
arm64: fpsimd: Abstract out binding of task's fpsimd context to the cpu.

There is currently some duplicate logic to associate current's
FPSIMD context with the cpu when loading FPSIMD state into the cpu
regs.

Subsequent patches will update that logic, so in order to ensure it
only needs to be done in one place, this patch factors the relevant
code out into a new function fpsimd_bind_to_cpu().

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/fpsimd.c