[PATCH] arm64/sve: Delay freeing memory in fpsimd_flush_thread()
Mark Brown
broonie at kernel.org
Thu Jul 29 07:26:16 PDT 2021
On Thu, Jul 29, 2021 at 12:52:14PM +0200, Sebastian Andrzej Siewior wrote:
> +static void *sve_free_atomic(struct task_struct *task)
> +{
> + void *sve_state = task->thread.sve_state;
> +
> + WARN_ON(test_tsk_thread_flag(task, TIF_SVE));
> +
> + task->thread.sve_state = NULL;
> + return sve_state;
> +}
This has exactly one caller - why not just inline it there? It'd
probably make it easier to follow what's going on.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210729/0b5b55cb/attachment-0001.sig>
More information about the linux-arm-kernel
mailing list