| To: | linux-mips@linux-mips.org, ralf@linux-mips.org |
|---|---|
| Subject: | [PATCH] MIPS: Remove execution hazard barriers for Octeon. |
| From: | David Daney <ddaney@caviumnetworks.com> |
| Date: | Mon, 11 May 2009 12:11:02 -0700 |
| Cc: | David Daney <ddaney@caviumnetworks.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
The Octeon has no execution hazards, so we can remove them and save an
instruction per TLB handler invocation.
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---
arch/mips/mm/tlbex.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c
index 3548acf..4b2ea1f 100644
--- a/arch/mips/mm/tlbex.c
+++ b/arch/mips/mm/tlbex.c
@@ -257,7 +257,7 @@ static void __cpuinit build_tlb_write_entry(u32 **p, struct
uasm_label **l,
case tlb_indexed: tlbw = uasm_i_tlbwi; break;
}
- if (cpu_has_mips_r2) {
+ if (cpu_has_mips_r2 && current_cpu_type() != CPU_CAVIUM_OCTEON) {
uasm_i_ehb(p);
tlbw(p);
return;
--
1.6.0.6
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 2/2] x86-64: seccomp: fix 32/64 syscall hole, Pavel Machek |
|---|---|
| Next by Date: | [PATCH] boot: allow user specified kernel command line length, Paul Gortmaker |
| Previous by Thread: | Help getting IP30/Octane fixed?, Kumba |
| Next by Thread: | Re: [PATCH] MIPS: Remove execution hazard barriers for Octeon., Paul Gortmaker |
| Indexes: | [Date] [Thread] [Top] [All Lists] |