Re: [PATCH v5 1/2] perf: use hrtimer for event multiplexing

From: Stephane Eranian
Date: Mon Mar 25 2013 - 13:58:36 EST


On Mon, Mar 25, 2013 at 12:13 PM, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> On Fri, 2013-03-22 at 11:51 +0100, Stephane Eranian wrote:
>> +#define PERF_CPU_HRTIMER (1000 / HZ)
>> +static enum hrtimer_restart perf_cpu_hrtimer_handler(struct hrtimer
>> *hr)
>> +{
>> + struct perf_cpu_context *cpuctx;
>> + enum hrtimer_restart ret = HRTIMER_NORESTART;
>> + unsigned long flags;
>> + int rotations = 0;
>> +
>> + cpuctx = container_of(hr, struct perf_cpu_context, hrtimer);
>> +
>> + local_irq_save(flags);
>> +
>> + rotations = perf_rotate_context(cpuctx);
>> +
>> + local_irq_restore(flags);
>
> IIRC hrtimer callbacks are always ran with interrupts disabled.. not a
> big deal though. I'll continue reading.

I can create a V6 to remove this if necessary.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/