Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752109Ab0G0SrJ (ORCPT ); Tue, 27 Jul 2010 14:47:09 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:12992 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751444Ab0G0SrH (ORCPT ); Tue, 27 Jul 2010 14:47:07 -0400 X-IronPort-AV: E=McAfee;i="5400,1158,6056"; a="48820023" X-IronPort-AV: E=Sophos;i="4.55,269,1278313200"; d="scan'208";a="124675" From: Jeff Ohlstein To: Russell King Cc: linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dwalker@codeaurora.org, Abhijeet Dharmapurikar , Jeff Ohlstein , Russell King Subject: [PATCH v2] GIC: Dont disable INT in ack callback Date: Tue, 27 Jul 2010 11:46:38 -0700 Message-Id: <1280256399-10752-1-git-send-email-johlstei@codeaurora.org> X-Mailer: git-send-email 1.7.1.1 In-Reply-To: <20100724103027.GA3336@debian> References: <20100724103027.GA3336@debian> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1829 Lines: 51 From: Abhijeet Dharmapurikar Unless gic_ack_irq is called from __do_IRQ, interrupt should not be disabled in the ack function. Signed-off-by: Abhijeet Dharmapurikar Signed-off-by: Jeff Ohlstein --- arch/arm/common/gic.c | 15 --------------- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/arch/arm/common/gic.c b/arch/arm/common/gic.c index 337741f..9bc6d88 100644 --- a/arch/arm/common/gic.c +++ b/arch/arm/common/gic.c @@ -67,25 +67,10 @@ static inline unsigned int gic_irq(unsigned int irq) /* * Routines to acknowledge, disable and enable interrupts - * - * Linux assumes that when we're done with an interrupt we need to - * unmask it, in the same way we need to unmask an interrupt when - * we first enable it. - * - * The GIC has a separate notion of "end of interrupt" to re-enable - * an interrupt after handling, in order to support hardware - * prioritisation. - * - * We can make the GIC behave in the way that Linux expects by making - * our "acknowledge" routine disable the interrupt, then mark it as - * complete. */ static void gic_ack_irq(unsigned int irq) { - u32 mask = 1 << (irq % 32); - spin_lock(&irq_controller_lock); - writel(mask, gic_dist_base(irq) + GIC_DIST_ENABLE_CLEAR + (gic_irq(irq) / 32) * 4); writel(gic_irq(irq), gic_cpu_base(irq) + GIC_CPU_EOI); spin_unlock(&irq_controller_lock); } -- 1.7.1.1 Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum. -- 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/