aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/context_tracking.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/context_tracking.c')
-rw-r--r--kernel/context_tracking.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/context_tracking.c b/kernel/context_tracking.c
index 937ecdfdf258..8ad53c9d38b6 100644
--- a/kernel/context_tracking.c
+++ b/kernel/context_tracking.c
@@ -75,7 +75,7 @@ void context_tracking_user_enter(void)
75 WARN_ON_ONCE(!current->mm); 75 WARN_ON_ONCE(!current->mm);
76 76
77 local_irq_save(flags); 77 local_irq_save(flags);
78 if ( __this_cpu_read(context_tracking.state) != IN_USER) { 78 if ( __this_cpu_read(context_tracking.state) != CONTEXT_USER) {
79 if (__this_cpu_read(context_tracking.active)) { 79 if (__this_cpu_read(context_tracking.active)) {
80 trace_user_enter(0); 80 trace_user_enter(0);
81 /* 81 /*
@@ -101,7 +101,7 @@ void context_tracking_user_enter(void)
101 * OTOH we can spare the calls to vtime and RCU when context_tracking.active 101 * OTOH we can spare the calls to vtime and RCU when context_tracking.active
102 * is false because we know that CPU is not tickless. 102 * is false because we know that CPU is not tickless.
103 */ 103 */
104 __this_cpu_write(context_tracking.state, IN_USER); 104 __this_cpu_write(context_tracking.state, CONTEXT_USER);
105 } 105 }
106 local_irq_restore(flags); 106 local_irq_restore(flags);
107} 107}
@@ -129,7 +129,7 @@ void context_tracking_user_exit(void)
129 return; 129 return;
130 130
131 local_irq_save(flags); 131 local_irq_save(flags);
132 if (__this_cpu_read(context_tracking.state) == IN_USER) { 132 if (__this_cpu_read(context_tracking.state) == CONTEXT_USER) {
133 if (__this_cpu_read(context_tracking.active)) { 133 if (__this_cpu_read(context_tracking.active)) {
134 /* 134 /*
135 * We are going to run code that may use RCU. Inform 135 * We are going to run code that may use RCU. Inform
@@ -139,7 +139,7 @@ void context_tracking_user_exit(void)
139 vtime_user_exit(current); 139 vtime_user_exit(current);
140 trace_user_exit(0); 140 trace_user_exit(0);
141 } 141 }
142 __this_cpu_write(context_tracking.state, IN_KERNEL); 142 __this_cpu_write(context_tracking.state, CONTEXT_KERNEL);
143 } 143 }
144 local_irq_restore(flags); 144 local_irq_restore(flags);
145} 145}