linux-mips
[Top] [All Lists]

[PATCH 4/4] tlbex.c: use __cacheline_aligned instead of __tlb_handler_al

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH 4/4] tlbex.c: use __cacheline_aligned instead of __tlb_handler_align attribute
From: Franck Bui-Huu <fbuihuu@gmail.com>
Date: Fri, 12 Oct 2007 08:43:49 +0200
Cc: linux-mips <linux-mips@linux-mips.org>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; bh=QyfWubqm/JHlV8uzTRfAYgwSZKgdrVm16XI76DUEzIE=; b=TBxitdK5OJ0h4tAdpmB7Nvo1dieFnde78e7bH96jKK+zj7+RYd2Vvfw0zBxoRvaMhf5WPvSLoNG/8o9VLD2kxN2Tv0QieJ74Nwa6BBeW5QMfouQfIjiAkmQOtTwWGEu362qX1JaIBuGaCpbFrC5RYd/VKRoTMOWFEyBFlLVVwFg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=acQ15gZVZ6saEmU+4+6Z3TjPwVEbgbDWdwjQcUzacjbsJJ5aCcIQceW3OQyO5boPhcGN+LGSUg4OgjDqQqtXc/Po/3/Ij0OQDLzqEuKGdBjQFZkGVFLQjSHNjWe4rqedLvRxZfuhF6TLbSoBuHxY8H4pasYMJCIsFLpS9B35NFk=
In-reply-to: <470F16B9.7030406@gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <470F16B9.7030406@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Thunderbird 2.0.0.5 (X11/20070719)
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
---
 arch/mips/mm/tlbex.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c
index 4775e4c..f8b21b3 100644
--- a/arch/mips/mm/tlbex.c
+++ b/arch/mips/mm/tlbex.c
@@ -1371,18 +1371,15 @@ static void __init build_r4000_tlb_refill_handler(void)
 extern void tlb_do_page_fault_0(void);
 extern void tlb_do_page_fault_1(void);
 
-#define __tlb_handler_align \
-       __attribute__((__aligned__(1 << CONFIG_MIPS_L1_CACHE_SHIFT)))
-
 /*
  * 128 instructions for the fastpath handler is generous and should
  * never be exceeded.
  */
 #define FASTPATH_SIZE 128
 
-u32 __tlb_handler_align handle_tlbl[FASTPATH_SIZE];
-u32 __tlb_handler_align handle_tlbs[FASTPATH_SIZE];
-u32 __tlb_handler_align handle_tlbm[FASTPATH_SIZE];
+u32 handle_tlbl[FASTPATH_SIZE] __cacheline_aligned;
+u32 handle_tlbs[FASTPATH_SIZE] __cacheline_aligned;
+u32 handle_tlbm[FASTPATH_SIZE] __cacheline_aligned;
 
 static void __init
 iPTE_LW(u32 **p, struct label **l, unsigned int pte, unsigned int ptr)

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