|
@@ -26,14 +26,15 @@ static inline bool context_tracking_is_enabled(void)
|
|
|
{
|
|
|
return static_key_false(&context_tracking_enabled);
|
|
|
}
|
|
|
-static inline bool context_tracking_in_user(void)
|
|
|
+
|
|
|
+static inline bool context_tracking_cpu_is_enabled(void)
|
|
|
{
|
|
|
- return __this_cpu_read(context_tracking.state) == IN_USER;
|
|
|
+ return __this_cpu_read(context_tracking.active);
|
|
|
}
|
|
|
|
|
|
-static inline bool context_tracking_active(void)
|
|
|
+static inline bool context_tracking_in_user(void)
|
|
|
{
|
|
|
- return __this_cpu_read(context_tracking.active);
|
|
|
+ return __this_cpu_read(context_tracking.state) == IN_USER;
|
|
|
}
|
|
|
#else
|
|
|
static inline bool context_tracking_in_user(void) { return false; }
|