summaryrefslogtreecommitdiff
path: root/include/linux/hrtimer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/hrtimer.h')
-rw-r--r--include/linux/hrtimer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h
index e0c09ffce2f..c39f9f37183 100644
--- a/include/linux/hrtimer.h
+++ b/include/linux/hrtimer.h
@@ -398,7 +398,7 @@ extern ktime_t hrtimer_get_next_event(void);
*/
static inline int hrtimer_active(const struct hrtimer *timer)
{
- return timer->state != HRTIMER_STATE_INACTIVE;
+ return (timer->state & (~HRTIMER_STATE_PINNED)) != HRTIMER_STATE_INACTIVE;
}
/*