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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/