diff options
-rw-r--r-- | arch/sh/kernel/setup.c | 4 | ||||
-rw-r--r-- | include/asm-sh/cpu-features.h | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index de8df969d6af..6810de3f8ed2 100644 --- a/arch/sh/kernel/setup.c +++ b/arch/sh/kernel/setup.c | |||
@@ -413,8 +413,10 @@ const char *get_cpu_subtype(void) | |||
413 | } | 413 | } |
414 | 414 | ||
415 | #ifdef CONFIG_PROC_FS | 415 | #ifdef CONFIG_PROC_FS |
416 | /* Symbolic CPU flags, keep in sync with asm/cpu-features.h */ | ||
416 | static const char *cpu_flags[] = { | 417 | static const char *cpu_flags[] = { |
417 | "none", "fpu", "p2flush", "mmuassoc", "dsp", "perfctr", "ptea", NULL | 418 | "none", "fpu", "p2flush", "mmuassoc", "dsp", "perfctr", |
419 | "ptea", "llsc", NULL | ||
418 | }; | 420 | }; |
419 | 421 | ||
420 | static void show_cpuflags(struct seq_file *m) | 422 | static void show_cpuflags(struct seq_file *m) |
diff --git a/include/asm-sh/cpu-features.h b/include/asm-sh/cpu-features.h index e398947ec01d..e1260aae3ee3 100644 --- a/include/asm-sh/cpu-features.h +++ b/include/asm-sh/cpu-features.h | |||
@@ -3,6 +3,14 @@ | |||
3 | 3 | ||
4 | /* | 4 | /* |
5 | * Processor flags | 5 | * Processor flags |
6 | * | ||
7 | * Note: When adding a new flag, keep cpu_flags[] in | ||
8 | * arch/sh/kernel/setup.c in sync so symbolic name | ||
9 | * mapping of the processor flags has a chance of being | ||
10 | * reasonably accurate. | ||
11 | * | ||
12 | * These flags are also available through the ELF | ||
13 | * auxiliary vector as AT_HWCAP. | ||
6 | */ | 14 | */ |
7 | #define CPU_HAS_FPU 0x0001 /* Hardware FPU support */ | 15 | #define CPU_HAS_FPU 0x0001 /* Hardware FPU support */ |
8 | #define CPU_HAS_P2_FLUSH_BUG 0x0002 /* Need to flush the cache in P2 area */ | 16 | #define CPU_HAS_P2_FLUSH_BUG 0x0002 /* Need to flush the cache in P2 area */ |