linux-mips
[Top] [All Lists]

Re: [PATCH] MIPS: Get rid of some #ifdefery in arch/mips/mm/tlb-r4k.c

To: David Daney <ddaney.cavm@gmail.com>
Subject: Re: [PATCH] MIPS: Get rid of some #ifdefery in arch/mips/mm/tlb-r4k.c
From: Sergei Shtylyov <sshtylyov@mvista.com>
Date: Mon, 21 Nov 2011 14:31:05 +0400
Cc: linux-mips@linux-mips.org, ralf@linux-mips.org, David Daney <david.daney@cavium.com>
In-reply-to: <1321651809-23395-1-git-send-email-ddaney.cavm@gmail.com>
References: <1321651809-23395-1-git-send-email-ddaney.cavm@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0
Hello.

On 19-11-2011 1:30, David Daney wrote:

From: David Daney<david.daney@cavium.com>

In the case of !CONFIG_HUGETLB_PAGE, in linux/hugetlb.h we have this
definition:

   Missed it?

The other huge page constants in the if(pmd_huge()) block are likewise
defined, so we can get rid of the #ifdef CONFIG_HUGETLB_PAGE an let
the compiler optimize this block away instead.  Doing this the code
has a much cleaner appearance.

Signed-off-by: David Daney <david.daney@cavium.com>

WBR, Sergei

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