From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754549Ab0I1FBf (ORCPT ); Tue, 28 Sep 2010 01:01:35 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:57602 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751012Ab0I1FBe convert rfc822-to-8bit (ORCPT ); Tue, 28 Sep 2010 01:01:34 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=rbBD82+3HbSBP9jwMrn1a0fOA5pulJj2zusW+m8AKQpCeaSoIpMCU4r7FJSq2YuMX2 YOl+oBo4310dRRFfA4azBJN2fto2SY5tMPPZ8CHIblejXbyL57x1bslMPHPdeeMG9SxZ emHxXxCWV9N+u9nF4gY4EQYczfW3djLaqETjQ= MIME-Version: 1.0 In-Reply-To: <20100928042416.GA9359@opensource.wolfsonmicro.com> References: <1285120171-3030-1-git-send-email-tom.leiming@gmail.com> <20100927154809.GI2560@sortiz-mobl> <20100928042416.GA9359@opensource.wolfsonmicro.com> Date: Tue, 28 Sep 2010 13:01:32 +0800 Message-ID: Subject: Re: [PATCH] mfd: speedup twl4030 irq response time and decrease irq disable time From: Ming Lei To: Mark Brown Cc: Samuel Ortiz , linux-omap@vger.kernel.org, Santosh Shilimkar , Balaji T K , Rajendra Nayak , Kevin Hilman , linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Peter Zijlstra , linux-arch@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CC genirq guys 2010/9/28 Mark Brown : > On Tue, Sep 28, 2010 at 08:25:24AM +0800, Ming Lei wrote: >> 2010/9/27 Samuel Ortiz : > >> > Wouldn't converting your twl4030_irq_thread() to the threaded IRQ framework >> > fix that problem ? > >> IRQ_DISABLED flag is set by disable_irq_nosync called from PIH handler, >> then thread function can't be executed in irq thread function, so we can't >> convert this to threaded IRQ framework simply. > > Have you raised this issue with the genirq guys?  This sounds like > something that the core infrastructure should be able to cope with. > Even genirq guys can help us to convert to irq thread framework, I don't think there is good way to set priority for one irq thread. For twl4030, if we can make twl4030_irq_thread to run at higher priority than that of other irq thread, the PIH irq disable time can be decreased further since other irq thread waken up by twl4030_irq_thread can preempt the running of twl4030_irq_thread, and the PIH irq will be enabled until complete of twl4030_irq_thread. thanks, -- Lei Ming