aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/context_tracking.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/context_tracking.h')
-rw-r--r--include/linux/context_tracking.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/linux/context_tracking.h b/include/linux/context_tracking.h
index 5984f2556d13..d883ff0dd8fc 100644
--- a/include/linux/context_tracking.h
+++ b/include/linux/context_tracking.h
@@ -72,8 +72,9 @@ extern void guest_exit(void);
72static inline void guest_enter(void) 72static inline void guest_enter(void)
73{ 73{
74 /* 74 /*
75 * This is running in ioctl context so we can avoid 75 * This is running in ioctl context so its safe
76 * the call to vtime_account() with its unnecessary idle check. 76 * to assume that it's the stime pending cputime
77 * to flush.
77 */ 78 */
78 vtime_account_system(current); 79 vtime_account_system(current);
79 current->flags |= PF_VCPU; 80 current->flags |= PF_VCPU;
@@ -81,10 +82,7 @@ static inline void guest_enter(void)
81 82
82static inline void guest_exit(void) 83static inline void guest_exit(void)
83{ 84{
84 /* 85 /* Flush the guest cputime we spent on the guest */
85 * This is running in ioctl context so we can avoid
86 * the call to vtime_account() with its unnecessary idle check.
87 */
88 vtime_account_system(current); 86 vtime_account_system(current);
89 current->flags &= ~PF_VCPU; 87 current->flags &= ~PF_VCPU;
90} 88}