Skip to content

Commit

Permalink
MIPS: For Cavium OCTEON handle hazards as per the R10000 handling.
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
David Daney authored and Ralf Baechle committed Jan 11, 2009
1 parent 5b3b168 commit bd6d85c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/mips/include/asm/hazards.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit bd6d85c

Please sign in to comment.