sh: Tidy up the optional L2 probing, wire it up for SH7786.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 1 Jun 2009 10:38:41 +0000 (19:38 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 1 Jun 2009 10:38:41 +0000 (19:38 +0900)
commit7863d3f7aeae05099a38693a0a7eb7bdc7b2ab05
tree8687e010c793b3800ec2ef967d166b71d78be491
parent43909a938063f9b6f98c05a2e28b072dd972ece7
sh: Tidy up the optional L2 probing, wire it up for SH7786.

This tidies up the L2 probing, as it may or may not be implemented on a
CPU, regardless of whether it is supported. This converts the cvr
validity checks from BUG_ON()'s to simply clearing the CPU_HAS_L2_CACHE
flag and moving on with life.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/sh4/probe.c