| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH 06/29] MIPS: For Cavium OCTEON handle hazards as per the R10000 handling. |
| From: | David Daney <ddaney@caviumnetworks.com> |
| Date: | Thu, 6 Nov 2008 12:54:19 -0800 |
| Cc: | David Daney <ddaney@caviumnetworks.com>, Tomaso Paoletti <tpaoletti@caviumnetworks.com>, Paul Gortmaker <Paul.Gortmaker@windriver.com> |
| In-reply-to: | <491358F5.7040002@caviumnetworks.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <491358F5.7040002@caviumnetworks.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
For Cavium CPU, we treat the same as R10000, in that all hazards
are dealt with in hardware.
Signed-off-by: Tomaso Paoletti <tpaoletti@caviumnetworks.com>
Signed-off-by: Paul Gortmaker <Paul.Gortmaker@windriver.com>
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---
arch/mips/include/asm/hazards.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/include/asm/hazards.h b/arch/mips/include/asm/hazards.h
index 2de638f..43baed1 100644
--- a/arch/mips/include/asm/hazards.h
+++ b/arch/mips/include/asm/hazards.h
@@ -42,7 +42,7 @@ ASMMACRO(_ehb,
/*
* TLB hazards
*/
-#if defined(CONFIG_CPU_MIPSR2)
+#if defined(CONFIG_CPU_MIPSR2) && !defined(CONFIG_CPU_CAVIUM_OCTEON)
/*
* MIPSR2 defines ehb for hazard avoidance
@@ -138,7 +138,7 @@ do {
\
__instruction_hazard(); \
} while (0)
-#elif defined(CONFIG_CPU_R10000)
+#elif defined(CONFIG_CPU_R10000) || defined(CONFIG_CPU_CAVIUM_OCTEON)
/*
* R10000 rocks - all hazards handled in hardware, so this becomes a nobrainer.
--
1.5.6.5
|
| Previous by Date: | [PATCH 04/29] MIPS: Add Cavium OCTEON processor support files to arch/mips/mm., David Daney |
|---|---|
| Next by Date: | [PATCH 07/29] MIPS: For Cavium OCTEON set hwrena and lazily restore CP2 state., David Daney |
| Previous by Thread: | [PATCH 04/29] MIPS: Add Cavium OCTEON processor support files to arch/mips/mm., David Daney |
| Next by Thread: | [PATCH 07/29] MIPS: For Cavium OCTEON set hwrena and lazily restore CP2 state., David Daney |
| Indexes: | [Date] [Thread] [Top] [All Lists] |