diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/trace/events/sched.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index 0a68d5ae584e..a7d67bc14906 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) | |||
| 100 | /* | 100 | /* |
| 101 | * For all intents and purposes a preempted task is a running task. | 101 | * For all intents and purposes a preempted task is a running task. |
| 102 | */ | 102 | */ |
| 103 | if (task_preempt_count(p) & PREEMPT_ACTIVE) | 103 | if (preempt_count() & PREEMPT_ACTIVE) |
| 104 | state = TASK_RUNNING | TASK_STATE_MAX; | 104 | state = TASK_RUNNING | TASK_STATE_MAX; |
| 105 | #endif | 105 | #endif |
| 106 | 106 | ||
