Lines Matching refs:current

172 		 * which are in @mask even if the current task cannot use
206 spin_lock_irq(&current->sighand->siglock);
207 fpuperm = &current->group_leader->thread.fpu.guest_perm;
213 spin_unlock_irq(&current->sighand->siglock);
319 struct fpstate *fps = current->thread.fpu.fpstate;
333 struct fpu *fpu = &current->thread.fpu;
409 * Nullify @vpkru to preserve its current value if PKRU's bit isn't set
430 if (!(current->flags & (PF_KTHREAD | PF_USER_WORKER)) &&
433 save_fpregs_to_fpstate(&current->thread.fpu);
456 * Sync the FPU register state to current's memory register state when the
457 * current task owns the FPU. The hardware register state is preserved.
461 WARN_ON_FPU(fpu != &current->thread.fpu);
546 struct fpu *src_fpu = &current->group_leader->thread.fpu;
548 spin_lock_irq(&current->sighand->siglock);
552 spin_unlock_irq(&current->sighand->siglock);
583 /* Clone current's FPU state on fork */
587 struct fpu *src_fpu = &current->thread.fpu;
622 * Save the default portion of the current FPU state into the
628 * copying is not valid when current uses non-default states.
668 * Drops current FPU state: deactivates the fpregs and
680 if (fpu == &current->thread.fpu) {
710 * Reset current->fpu memory state to the init values.
714 struct fpu *fpu = &current->thread.fpu;
737 * Reset current's user FPU states to the init states. current's
743 WARN_ON_FPU(fpu != &current->thread.fpu);
753 * Ensure that current's supervisor states are loaded into their
765 * state machine that current's FPU registers are in the hardware
768 * current's FPU is marked active.
776 fpstate_reset(&current->thread.fpu);
799 WARN_ON_ONCE(current->flags & PF_KTHREAD);
811 * If current FPU state according to its tracking (loaded FPU context on this
817 struct fpu *fpu = &current->thread.fpu;
829 struct fpu *fpu = &current->thread.fpu;