Received: from milmhbs1.lsil.com (147.145.21.209) by coscas01.lsi.com
 (172.21.36.60) with Microsoft SMTP Server id 8.1.393.1; Thu, 8 Oct 2009
 06:41:09 -0600
Received: from mail1.lsil.com (mail1.lsil.com [147.145.40.21])	by
 milmhbs1.lsil.com (8.12.11/8.12.11) with ESMTP id n98Cf9X1016828	for
 <andy.sharp@lsi.com>; Thu, 8 Oct 2009 05:41:09 -0700
Received: from psmtp.com (na3sys009amx258.postini.com [74.125.149.142])	by
 mail1.lsil.com (8.12.11/8.12.11) with SMTP id n98CepEU013600	for
 <andy.sharp@lsi.com>; Thu, 8 Oct 2009 05:41:07 -0700 (PDT)
Received: from source ([78.24.191.182]) by na3sys009amx258.postini.com
 ([74.125.148.14]) with SMTP;	Thu, 08 Oct 2009 08:41:08 EDT
Received: from localhost.localdomain ([127.0.0.1]:33448 "EHLO
	eddie.linux-mips.org" rhost-flags-OK-OK-OK-FAIL) by ftp.linux-mips.org	with
 ESMTP id S1492924AbZJHMkg (ORCPT <rfc822;andy.sharp@lsi.com>);	Thu, 8 Oct
 2009 14:40:36 +0200
Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 08 Oct 2009 14:40:18
 +0200 (CEST)
Received: from mail-px0-f187.google.com ([209.85.216.187]:42318 "EHLO
	mail-px0-f187.google.com" rhost-flags-OK-OK-OK-OK)	by ftp.linux-mips.org with
 ESMTP id S1492608AbZJHMkL (ORCPT	<rfc822;linux-mips@linux-mips.org>); Thu, 8
 Oct 2009 14:40:11 +0200
Received: by pxi17 with SMTP id 17so7362087pxi.21        for
 <linux-mips@linux-mips.org>; Thu, 08 Oct 2009 05:40:01 -0700 (PDT)
Received: by 10.114.6.28 with SMTP id 28mr2006639waf.115.1255005601495;
        Thu, 08 Oct 2009 05:40:01 -0700 (PDT)
Received: from localhost.localdomain ([222.92.8.142])        by mx.google.com
 with ESMTPS id 23sm805450pzk.4.2009.10.08.05.39.58
        (version=TLSv1/SSLv3 cipher=RC4-MD5);        Thu, 08 Oct 2009 05:40:00
 -0700 (PDT)
From: Wu Zhangjin <wuzhangjin@gmail.com>
To: "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
CC: Wu Zhangjin <wuzhangjin@gmail.com>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Thu, 8 Oct 2009 06:39:50 -0600
Subject: [PATCH] [loongson] Remove redundant local_irq_disable()
Thread-Topic: [PATCH] [loongson] Remove redundant local_irq_disable()
Thread-Index: AcpIFJ01sjDvJmnXQiinTbNkT/QEMg==
Message-ID: <1255005590-16562-1-git-send-email-wuzhangjin@gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Anonymous
X-MS-Exchange-Organization-AuthSource: coscas01.lsi.com
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
errors-to: linux-mips-bounce@linux-mips.org
x-scanned-by: MIMEDefang 2.39
x-pstn-levels: (S:26.37900/99.90000 CV:99.9000 FC:95.5390 LC:95.5390
 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
x-pstn-settings: 3 (1.0000:1.0000) s cv gt3 gt2 gt1 r p m c 
x-pstn-addresses: from <wuzhangjin@gmail.com> [db-null] 
x-pstn-neptune: 2/1/0.50/66
dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com;
 s=gamma;
        h=domainkey-signature:received:received:from:to:cc:subject:date
         :message-id:x-mailer;
        bh=KpNFwhQTsPP58mWa/mdiSFYSn3iEuFNMHO4t/FluFkQ=;
        b=wXF9/dnPDOvhQVLVcLXRAhfCdjIo0mXc0kHA/+Vt1lLSxXIX1xOJPDR1Uk/r5n3Xm9
         PZTMbGlEimLl+PkPxE5R31HHc7T45Ju4jkDDoLQIK+igRW/iGed3Oc4j2p+224caSZD6
         o9tFi/0roBCHAgk5k1v5Gz+jQkwdndrPs0cg8=
domainkey-signature: a=rsa-sha1; c=nofws;        d=gmail.com; s=gamma;
        h=from:to:cc:subject:date:message-id:x-mailer;
        b=GdHkj1J+ZsuUskuqLXiBlYZoCAo5dy0Ccd7SaQtGtW7Higm94NHJXgMZOK4bGeUbyS
         AJ0ChdxZKE16hKASOjAW2DbrdNNMsOfUaEvGalYZDGvMYZg90d2WGti4v7kSmVS09F5o
         ZFEsy9uFyrk26u+0ioKo9anU3ccbaBiqrWSA4=
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

That code is executed with irq disabled already, so, Remove the redundant
local_irq_disable() here.

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
 arch/mips/loongson/common/irq.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/arch/mips/loongson/common/irq.c b/arch/mips/loongson/common/ir=
q.c
index 53dff17..20e7328 100644
--- a/arch/mips/loongson/common/irq.c
+++ b/arch/mips/loongson/common/irq.c
@@ -55,7 +55,6 @@ void __init arch_init_irq(void)
 	 * int-handler is not on bootstrap
 	 */
 	clear_c0_status(ST0_IM | ST0_BEV);
-	local_irq_disable();
=20
 	/* setting irq trigger mode */
 	set_irq_trigger_mode();
--=20
1.6.2.1


