[Top] [All Lists]

Re: [PATCH v4 2/3] MIPS: microMIPS: Add kernel_uses_mmips in cpu-feature

To: "Steven J. Hill" <>
Subject: Re: [PATCH v4 2/3] MIPS: microMIPS: Add kernel_uses_mmips in cpu-features.h
From: Tony Wu <>
Date: Thu, 20 Jun 2013 17:50:35 +0800
Cc: Sergei Shtylyov <>, Ralf Baechle <>, "Maciej W. Rozycki" <>,,
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=E9W0oZMcs2PH09NC7CYGtJnuOx7sB5cu7mN2QTtoH0M=; b=maoTThYUiLqYug+4V78BivHDaovP56rEMaxWqt+nETIQpXRLKzfR2nLt7yrSZ4FzYI Tee7YQN3suQexdMMg9f3Wf/PsahI4IioGfDWfb6CBKXXiOJeRu8CB1M4umFeCuEsJ3mT k5VgpcSwfUWut0lMGQgR7Yw+5orOE+ZNykgWg+kBK0R61oBiP01wRZkB2nk7lQaapB+i BdoNS/pd8B+8wX0kb780VL9YDFZJX0dUFH4Rq2tNfAfXFmeIkDMY5NR936oE0o1UHN2X M1FckHPY4AoT7k6Y9Y+N6YUMQwXtzJnu8lbO0gcngs+wDPk5XxB2qD7wUKqmWSyjcOxT UAnw==
In-reply-to: <>
List-archive: <>
List-help: <>
List-id: linux-mips <>
List-owner: <>
List-post: <>
List-software: Ecartis version 1.0.0
List-subscribe: <>
List-unsubscribe: <>
Original-recipient: rfc822;
References: <20130527124421.GA32322@hades> <20130527124557.GB32322@hades> <> <>
On Thu, Jun 20, 2013 at 5:56 AM, Steven J. Hill <> wrote:
On 05/27/2013 09:34 AM, Sergei Shtylyov wrote:

On 27-05-2013 16:45, Tony Wu wrote:

Add kernel_uses_mmips to denote whether CONFIG_CPU_MICROMIPS
is set or not. This variable can help cut down #ifdef usage.

    You can avoid #ifdef usage with using IS_BUILTIN() macro, not
defining extra macros.

Signed-off-by: Tony Wu <>
Cc: David Daney <>
Cc: Steven J. Hill <>

WBR, Sergei

I think this patch is not needed with <> being used instead?


I think cpu_has_mmips does not necessary mean kernel is compiled using microMIPS ISA, so I added kernel_uses_mmips for that purpose. We can remove this patch, but the third patch of this patch set will need some modifications. I will send new patches later.

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