linux-mips
[Top] [All Lists]

[PATCH] MIPS: Add missing cpu_has_mips_1 guardian

To: ralf@linux-mips.org, linux-mips@linux-mips.org
Subject: [PATCH] MIPS: Add missing cpu_has_mips_1 guardian
From: Tony Wu <tung7970@gmail.com>
Date: Fri, 21 Jun 2013 19:03:01 +0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=Vxh3lDjYNxW91+FWhLTaIvCibZrHWUbCy1z3O/zoFZc=; b=RFq4jRd9A3IMk69larmFmEvxMvB6Enn85R9gannZ4DJxfxrscmAOqhgGHaw6jmyXjQ TcriEzZn/6wCHsA43mx8PMxIcyJuTkLNhY9uJatlwngk9U/1QC6pG21bzg0f+yijl1+R I3GUffwzrDAb4y2ELAfu6l1+N4iACGPA9+XQtk/a+4D9O1uBppq77vhYXsVuobXmibMS TfCfosFRUI+c1u1iMYp0uP4tCFiaw+es4HM06ZfAvLfEXc0A2Arp/y3NImBEpoocTk++ hMMcBFFEkVf1pC2t8ct2iWOiiodNM5F/JkYWrBohSwgayZLhbN8E87KO0CNw9wJ14YKu QGWw==
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.21 (2010-09-15)
Signed-off-by: Tony Wu <tung7970@gmail.com>
---
 arch/mips/include/asm/cpu-features.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/mips/include/asm/cpu-features.h 
b/arch/mips/include/asm/cpu-features.h
index e5ec8fc..df5e523 100644
--- a/arch/mips/include/asm/cpu-features.h
+++ b/arch/mips/include/asm/cpu-features.h
@@ -136,7 +136,9 @@
 #endif
 #endif
 
+#ifndef cpu_has_mips_1
 # define cpu_has_mips_1                (cpu_data[0].isa_level & MIPS_CPU_ISA_I)
+#endif
 #ifndef cpu_has_mips_2
 # define cpu_has_mips_2                (cpu_data[0].isa_level & 
MIPS_CPU_ISA_II)
 #endif
-- 
1.7.10.2

<Prev in Thread] Current Thread [Next in Thread>