[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1341476945.7709.1.camel@twins>
Date: Thu, 05 Jul 2012 10:29:05 +0200
From: Peter Zijlstra <a.p.zijlstra@...llo.nl>
To: Yong Zhang <yong.zhang0@...il.com>
Cc: linux-rt-users@...r.kernel.org, linux-kernel@...r.kernel.org,
Thomas Gleixner <tglx@...utronix.de>,
Steven Rostedt <rostedt@...dmis.org>
Subject: Re: [PATCH -rt] perf: make swevent hrtimer run in irq instead of
softirq
On Thu, 2012-07-05 at 16:21 +0800, Yong Zhang wrote:
> diff --git a/kernel/events/core.c b/kernel/events/core.c
> index fd126f8..451d452 100644
> --- a/kernel/events/core.c
> +++ b/kernel/events/core.c
> @@ -5403,6 +5403,7 @@ static void perf_swevent_init_hrtimer(struct perf_event *event)
>
> hrtimer_init(&hwc->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
> hwc->hrtimer.function = perf_swevent_hrtimer;
> + hwc->hrtimer.irqsafe = 1;
>
> /*
> * Since hrtimers have a fixed rate, we can do a static freq->period
Yes this is correct.. curious we lost that. I'm sure I've done this
before.
--
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