Re: [PATCH -rt] perf: make swevent hrtimer run in irq instead of softirq

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux