diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/kernel/cpu/sh4/probe.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/sh/kernel/cpu/sh4/probe.c b/arch/sh/kernel/cpu/sh4/probe.c index 98d28fb1ce16..8f318a4fe722 100644 --- a/arch/sh/kernel/cpu/sh4/probe.c +++ b/arch/sh/kernel/cpu/sh4/probe.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * CPU Subtype Probing for SH-4. | 4 | * CPU Subtype Probing for SH-4. |
5 | * | 5 | * |
6 | * Copyright (C) 2001 - 2006 Paul Mundt | 6 | * Copyright (C) 2001 - 2007 Paul Mundt |
7 | * Copyright (C) 2003 Richard Curnow | 7 | * Copyright (C) 2003 Richard Curnow |
8 | * | 8 | * |
9 | * This file is subject to the terms and conditions of the GNU General Public | 9 | * This file is subject to the terms and conditions of the GNU General Public |
@@ -52,12 +52,9 @@ int __init detect_cpu_and_cache_system(void) | |||
52 | current_cpu_data.dcache.linesz = L1_CACHE_BYTES; | 52 | current_cpu_data.dcache.linesz = L1_CACHE_BYTES; |
53 | 53 | ||
54 | /* | 54 | /* |
55 | * Setup some generic flags we can probe | 55 | * Setup some generic flags we can probe on SH-4A parts |
56 | * (L2 and DSP detection only work on SH-4A) | ||
57 | */ | 56 | */ |
58 | if (((pvr >> 16) & 0xff) == 0x10) { | 57 | if (((pvr >> 16) & 0xff) == 0x10) { |
59 | if ((cvr & 0x02000000) == 0) | ||
60 | current_cpu_data.flags |= CPU_HAS_L2_CACHE; | ||
61 | if ((cvr & 0x10000000) == 0) | 58 | if ((cvr & 0x10000000) == 0) |
62 | current_cpu_data.flags |= CPU_HAS_DSP; | 59 | current_cpu_data.flags |= CPU_HAS_DSP; |
63 | 60 | ||