Re: [PATCH v2 2/3] perf: use hrtimer for event multiplexing

From: Peter Zijlstra
Date: Wed Sep 12 2012 - 10:50:31 EST

On Wed, 2012-09-12 at 16:48 +0200, Stephane Eranian wrote:
> On Wed, Sep 12, 2012 at 4:44 PM, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> > On Wed, 2012-09-12 at 16:43 +0200, Stephane Eranian wrote:
> >> The hrtimer_active is used to prevent activating the timer multiple times
> >> in a row.
> >
> > see hrtimer_active(), this should do what you want I think.
> I need something that is true even when the hrtimer is not executing
> the callback handler. I guess that may be the different between
> hrtimer_active() vs. hrtimer_running()?

As the comment states, hrtimer_active() returns true if the timer is
either in the tree (enqueued) or running.

hrtimer_callback_running() is true iff the callback is currently

hrtimer_queued() is true iff the timer is queued.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at