diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index 0a68d5ae584e9dfada372fdae49c5d0934176402..a7d67bc14906fc0cbe22c5ccd4af3f4d7b994712 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -100,7 +100,7 @@ static inline long __trace_sched_switch_state(struct task_struct *p) /* * For all intents and purposes a preempted task is a running task. */ - if (task_preempt_count(p) & PREEMPT_ACTIVE) + if (preempt_count() & PREEMPT_ACTIVE) state = TASK_RUNNING | TASK_STATE_MAX; #endif