]> 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)
commit33ea44442a71818f5c7e3a09065075457eb6fc22
treeebd1dc9179bfdc17ab64bcff4cb8306e1eb53e48
parent566bd1dc767b6f2344edce16e4f75f903aa8606d
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