[Top] [All Lists]

Re: [PATCH 2/3] MIPS: changes in mm for adding THP

To: Hillf Danton <>
Subject: Re: [PATCH 2/3] MIPS: changes in mm for adding THP
From: David Daney <>
Date: Tue, 24 Apr 2012 16:31:37 -0700
Cc: Ralf Baechle <>, Andrea Arcangeli <>, Andrew Morton <>,
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=kELVyRqwRjlgVG6ZjD0R1eX3og9lUCp1VaOO465b7eQ=; b=I3PMmfZt7K8M01kgUUrc2ge5KAJzVZ+s+zJLNlfGhY6K5TUTREWtGmofTBaZ6p36y8 nrk0tFkDBhtwJPVEgtSwrlyhlNc2c0J6C+ukcfReNALfVh2Ab13ukEY9sWyks4Qd02ue ZRanRzC1/CRImNz89uizrsN5NH05jEzn2Vol62NZUKtoqP3QZSy65GRi0MPBeF2v6mcP a54fby33JSQnCZx5nEMgcDz1fnmzubKhNV8kApq4nUsyt/b+YrdHKzORU7WLab57584p v5Eey4fBAe2/yH6z/7Kw/3HFor3+B8CQxo3/lk5F/iLQN0MwJTI5r1kllE0+fR4vPEqM VyNQ==
In-reply-to: <>
References: <>
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10
On 11/26/2011 06:39 AM, Hillf Danton wrote:
Based on the current work of huge TLB, no code is added for THP but info gcc
to compile the huge TLB code for THP. That is the second factor why the present
bit is selected.

Signed-off-by: Hillf Danton<>

--- a/arch/mips/include/asm/page.h      Thu Nov 24 21:17:10 2011
+++ b/arch/mips/include/asm/page.h      Sat Nov 26 21:35:51 2011
@@ -33,7 +33,7 @@
  #define PAGE_SIZE     (_AC(1,UL)<<  PAGE_SHIFT)
  #define PAGE_MASK       (~((1<<  PAGE_SHIFT) - 1))


This exact sequence happens many times in the patch.

Can we define some symbol (perhaps in page.h) that is set for both of the conditions?

#define BRFL

#ifdef BRFL  /* everywhere else */

We of course wouldn't use the name BRFL, but rather something fitting.

With a change like that, I would like to retest the patches and try to get them merged.

David Daney

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