Received: from milmhbs1.lsil.com (147.145.21.209) by coscas01.lsi.com
 (172.21.36.60) with Microsoft SMTP Server id 8.1.393.1; Tue, 2 Feb 2010
 18:20:15 -0700
Received: from mail1.lsil.com (mail1.lsil.com [147.145.40.21])	by
 milmhbs1.lsil.com (8.12.11/8.12.11) with ESMTP id o131KFOw004566	for
 <andy.sharp@lsi.com>; Tue, 2 Feb 2010 17:20:15 -0800
Received: from psmtp.com (na3sys009amx212.postini.com [74.125.149.52])	by
 mail1.lsil.com (8.12.11/8.12.11) with SMTP id o131KDlM023435	for
 <andy.sharp@lsi.com>; Tue, 2 Feb 2010 17:20:14 -0800 (PST)
Received: from source ([78.24.191.182]) by na3sys009amx212.postini.com
 ([74.125.148.14]) with SMTP;	Tue, 02 Feb 2010 19:20:14 CST
Received: from localhost.localdomain ([127.0.0.1]:47618 "EHLO
        eddie.linux-mips.org" rhost-flags-OK-OK-OK-FAIL)        by
 eddie.linux-mips.org with ESMTP id S1492736Ab0BCBUK (ORCPT
        <rfc822;andy.sharp@lsi.com>); Wed, 3 Feb 2010 02:20:10 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 03 Feb 2010 02:19:51
 +0100 (CET)
Received: from smtp2.caviumnetworks.com ([209.113.159.134]:12771 "EHLO
        smtp2.caviumnetworks.com" rhost-flags-OK-OK-OK-OK)        by
 eddie.linux-mips.org with ESMTP id S1492569Ab0BCBTr (ORCPT
        <rfc822;linux-mips@linux-mips.org>); Wed, 3 Feb 2010 02:19:47 +0100
Received: from maexch1.caveonetworks.com (Not Verified[192.168.14.20]) by
 smtp2.caviumnetworks.com with MailMarshal (v6,5,4,7535)        id
 <B4b68cde40001>; Tue, 02 Feb 2010 20:14:12 -0500
Received: from caexch01.caveonetworks.com ([192.168.16.9]) by
 maexch1.caveonetworks.com with Microsoft SMTPSVC(6.0.3790.3959);         Tue,
 2 Feb 2010 20:19:46 -0500
Received: from dd1.caveonetworks.com ([12.108.191.236]) by
 caexch01.caveonetworks.com over TLS secured channel with Microsoft
 SMTPSVC(6.0.3790.3959);         Tue, 2 Feb 2010 17:19:44 -0800
Received: from dd1.caveonetworks.com (localhost.localdomain [127.0.0.1])
        by dd1.caveonetworks.com (8.14.2/8.14.2) with ESMTP id o131Jeu4012459;
        Tue, 2 Feb 2010 17:19:40 -0800
Received: (from ddaney@localhost)        by dd1.caveonetworks.com
 (8.14.2/8.14.2/Submit) id o131JckU012458;        Tue, 2 Feb 2010 17:19:38
 -0800
From: David Daney <ddaney@caviumnetworks.com>
To: "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>,
	"ralf@linux-mips.org" <ralf@linux-mips.org>
CC: David Daney <ddaney@caviumnetworks.com>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Tue, 2 Feb 2010 18:19:38 -0700
Subject: [PATCH] MIPS: Remove #if 0 r4k_update_mmu_cache_hwbug
Thread-Topic: [PATCH] MIPS: Remove #if 0 r4k_update_mmu_cache_hwbug
Thread-Index: AcqkbwqaJA6JRZJ/QieFgx7XeHgu0w==
Message-ID: <1265159978-12434-1-git-send-email-ddaney@caviumnetworks.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Anonymous
X-MS-Exchange-Organization-AuthSource: coscas01.lsi.com
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
x-scanned-by: MIMEDefang 2.39
errors-to: linux-mips-bounce@linux-mips.org
x-originalarrivaltime: 03 Feb 2010 01:19:44.0613 (UTC)
 FILETIME=[F7E9C150:01CAA46E]
x-pstn-levels: (S:99.90000/99.90000 CV:99.9000 FC:95.5390 LC:95.5390
 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
x-pstn-settings: 3 (1.0000:1.0000) s cv gt3 gt2 gt1 r p m c 
x-pstn-addresses: from <ddaney@caviumnetworks.com> [22/1] 
x-pstn-neptune: 0/0/0.00/0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

The function is #if 0ed out.  There are no other occurrences of its
name in the tree.  It is safe to remove.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---
 arch/mips/mm/tlb-r4k.c |   34 ----------------------------------
 1 files changed, 0 insertions(+), 34 deletions(-)

diff --git a/arch/mips/mm/tlb-r4k.c b/arch/mips/mm/tlb-r4k.c
index 7de128a..e551559 100644
--- a/arch/mips/mm/tlb-r4k.c
+++ b/arch/mips/mm/tlb-r4k.c
@@ -337,40 +337,6 @@ void __update_tlb(struct vm_area_struct * vma, unsigne=
d long address, pte_t pte)
 	EXIT_CRITICAL(flags);
 }
=20
-#if 0
-static void r4k_update_mmu_cache_hwbug(struct vm_area_struct * vma,
-				       unsigned long address, pte_t pte)
-{
-	unsigned long flags;
-	unsigned int asid;
-	pgd_t *pgdp;
-	pmd_t *pmdp;
-	pte_t *ptep;
-	int idx;
-
-	ENTER_CRITICAL(flags);
-	address &=3D (PAGE_MASK << 1);
-	asid =3D read_c0_entryhi() & ASID_MASK;
-	write_c0_entryhi(address | asid);
-	pgdp =3D pgd_offset(vma->vm_mm, address);
-	mtc0_tlbw_hazard();
-	tlb_probe();
-	tlb_probe_hazard();
-	pmdp =3D pmd_offset(pgdp, address);
-	idx =3D read_c0_index();
-	ptep =3D pte_offset_map(pmdp, address);
-	write_c0_entrylo0(pte_val(*ptep++) >> 6);
-	write_c0_entrylo1(pte_val(*ptep) >> 6);
-	mtc0_tlbw_hazard();
-	if (idx < 0)
-		tlb_write_random();
-	else
-		tlb_write_indexed();
-	tlbw_use_hazard();
-	EXIT_CRITICAL(flags);
-}
-#endif
-
 void __init add_wired_entry(unsigned long entrylo0, unsigned long entrylo1=
,
 	unsigned long entryhi, unsigned long pagemask)
 {
--=20
1.6.0.6


