]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4ee5feb3bd97d074e7ac68066b0423ac9ab55554
treeebd1dc9179bfdc17ab64bcff4cb8306e1eb53e48
parent8bc699a91b22695ff123bb77231fd55e20e17725
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