mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
FreeBSD: Don't save user FPU context in kernel threads
Reviewed-by: Alexander Motin <mav@FreeBSD.org> Reviewed-by: Ryan Moeller <freqlabs@FreeBSD.org> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #10899
This commit is contained in:
@@ -169,6 +169,10 @@ taskq_tsd_set(void *context)
|
||||
{
|
||||
taskq_t *tq = context;
|
||||
|
||||
#if defined(__amd64__) || defined(__i386__) || defined(__aarch64__)
|
||||
if (context != NULL && tsd_get(taskq_tsd) == NULL)
|
||||
fpu_kern_thread(FPU_KERN_NORMAL);
|
||||
#endif
|
||||
tsd_set(taskq_tsd, tq);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user