[patch 1/2] arm: Mark pmu interupt IRQF_NO_THREAD

Will Deacon will.deacon at arm.com
Fri Feb 15 04:51:53 EST 2013


On Thu, Feb 14, 2013 at 08:53:52PM +0000, Thomas Gleixner wrote:
> PMU interrupts must not be threaded.
> 
> Signed-off-by: Thomas Gleixner <tglx at linutronix.de>
> ---
>  arch/arm/kernel/perf_event_cpu.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> Index: linux-2.6/arch/arm/kernel/perf_event_cpu.c
> ===================================================================
> --- linux-2.6.orig/arch/arm/kernel/perf_event_cpu.c
> +++ linux-2.6/arch/arm/kernel/perf_event_cpu.c
> @@ -118,7 +118,8 @@ static int cpu_pmu_request_irq(struct ar
>  			continue;
>  		}
>  
> -		err = request_irq(irq, handler, IRQF_NOBALANCING, "arm-pmu",
> +		err = request_irq(irq, handler,
> +				  IRQF_NOBALANCING | IRQF_NO_THREAD, "arm-pmu",
>  				  cpu_pmu);
>  		if (err) {
>  			pr_err("unable to request IRQ%d for ARM PMU counters\n",
> 
> 

Yup, we certainly don't want these to be threaded! Cheers, I'll add this to
my perf queue.

Will



More information about the linux-arm-kernel mailing list