Lines Matching +full:current +full:- +full:mode
1 /* SPDX-License-Identifier: GPL-2.0 */
74 * ct_state() - return the current context tracking state if known
76 * Returns the current cpu's context tracking state if context tracking
110 vtime_guest_enter(current); in guest_enter_irqoff()
112 current->flags |= PF_VCPU; in guest_enter_irqoff()
119 * switches CPU into a guest mode. In fact switching to a guest mode in guest_enter_irqoff()
121 * addition CPU may stay in a guest mode for quite a long time (up to in guest_enter_irqoff()
122 * one time slice). Lets treat guest mode as quiescent state, just like in guest_enter_irqoff()
123 * we do with user-mode execution. in guest_enter_irqoff()
139 vtime_guest_exit(current); in guest_exit_irqoff()
141 current->flags &= ~PF_VCPU; in guest_exit_irqoff()
154 vtime_account_kernel(current); in guest_enter_irqoff()
155 current->flags |= PF_VCPU; in guest_enter_irqoff()
164 vtime_account_kernel(current); in guest_exit_irqoff()
165 current->flags &= ~PF_VCPU; in guest_exit_irqoff()