Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753265AbbLCWeL (ORCPT ); Thu, 3 Dec 2015 17:34:11 -0500 Received: from www.linutronix.de ([62.245.132.108]:52342 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753155AbbLCWeJ (ORCPT ); Thu, 3 Dec 2015 17:34:09 -0500 Date: Thu, 3 Dec 2015 23:33:14 +0100 (CET) From: Thomas Gleixner To: Yunhong Jiang cc: okuno.kohji@jp.panasonic.com, linux-kernel@vger.kernel.org Subject: Re: Can we conditionally force threading irq with primary and thread handler? In-Reply-To: <20151203191125.GA8945@jnakajim-build> Message-ID: References: <20151203191125.GA8945@jnakajim-build> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001,URIBL_BLOCKED=0.001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1061 Lines: 29 Yunhong, On Thu, 3 Dec 2015, Yunhong Jiang wrote: > Hi, Thomas > On Commit 2a1d3ab8986d1b2 ("genirq: Handle force threading of irqs > with primary and thread handler"), even if the caller of > request_threaded_irq() provides a primary handler, that primary handler will > be invoked in thread context. This may cause some latency issue for high > real time requirement. > > I checked the discussion on https://lkml.org/lkml/2015/9/19/372 with > Okuno and seems we need this change only if the irq is shared, otherwise, we > can still use Okuno's mechanism, am I right? Do you think it's ok to force > the primary handler for shared IRQ, otherwise, clear the IRQF_ONESHOT? If you want to avoid that the primary handler is force threaded, then you can indicate that with IRQF_NO_THREAD. Thanks, tglx -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/