Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964904AbdCWSeg (ORCPT ); Thu, 23 Mar 2017 14:34:36 -0400 Received: from smtprelay.synopsys.com ([198.182.47.9]:40757 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751783AbdCWSee (ORCPT ); Thu, 23 Mar 2017 14:34:34 -0400 Subject: Re: [PATCH V8 1/3] irq: Add flags to request_percpu_irq function To: Daniel Lezcano , "tglx@linutronix.de" References: <1490290924-12958-1-git-send-email-daniel.lezcano@linaro.org> CC: "nicolas.pitre@linaro.org" , "linux-samsung-soc@vger.kernel.org" , "vincent.guittot@linaro.org" , "kernel@stlinux.com" , "kvm@vger.kernel.org" , "rafael@kernel.org" , "peterz@infradead.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "xen-devel@lists.xenproject.org" , "linux-snps-arc@lists.infradead.org" , "kvmarm@lists.cs.columbia.edu" , "linux-arm-kernel@lists.infradead.org" From: Vineet Gupta Message-ID: Date: Thu, 23 Mar 2017 11:34:21 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <1490290924-12958-1-git-send-email-daniel.lezcano@linaro.org> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.10.161.82] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 786 Lines: 17 On 03/23/2017 10:42 AM, Daniel Lezcano wrote: > In the next changes, we track the interrupts but we discard the timers as > that does not make sense. The next interrupt on a timer is predictable. > > But, the API request_percpu_irq does not allow to pass a flag, hence specifying > if the interrupt type is a timer. > > Solve this by passing a 'flags' parameter to the function and change all the > callers to pass IRQF_TIMER when the interrupt is a timer interrupt, zero > otherwise. > > For now, in order to prevent a misusage of this parameter, only the IRQF_TIMER > flag is a valid parameter to be passed to the request_percpu_irq function. > > Signed-off-by: Daniel Lezcano Acked-by: Vineet Gupta # for arch/arc, arc_timer bits