[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CABPqkBQ+6=3-cf+N+Dv=cD8GX6wxMKgdqHBRsXBtp=HMdwEdWQ@mail.gmail.com>
Date: Mon, 25 Mar 2013 18:58:31 +0100
From: Stephane Eranian <eranian@...gle.com>
To: Peter Zijlstra <peterz@...radead.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
"mingo@...e.hu" <mingo@...e.hu>,
"ak@...ux.intel.com" <ak@...ux.intel.com>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Jiri Olsa <jolsa@...hat.com>,
Namhyung Kim <namhyung.kim@....com>
Subject: Re: [PATCH v5 1/2] perf: use hrtimer for event multiplexing
On Mon, Mar 25, 2013 at 12:13 PM, Peter Zijlstra <peterz@...radead.org> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists