diff options
author | Dave Martin <dave.martin@linaro.org> | 2011-08-19 12:58:35 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-10-17 04:12:40 -0400 |
commit | 2ecccf90f2a6d821af4d33f086d59895e5d3bedc (patch) | |
tree | d12438e595a0cfa5051187f69a1badddb1b317b3 /arch/arm/include | |
parent | 40c6d8aee40e373db75e6b0b4230fc8e8259d7a6 (diff) |
ARM: 7029/1: Make cpu_architecture into a global variable
The CPU architecture really should not be changing at runtime, so
make it a global variable instead of a function.
The cpu_architecture() function declared in <asm/system.h> remains
the correct way to read this variable from C code.
Signed-off-by: Dave Martin <dave.martin@linaro.org>
Reviewed-by: Jon Medhurst <tixy@yxit.co.uk>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/system.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/system.h index 832888d0c20c..4adf71b2b54a 100644 --- a/arch/arm/include/asm/system.h +++ b/arch/arm/include/asm/system.h | |||
@@ -57,6 +57,7 @@ | |||
57 | 57 | ||
58 | #ifndef __ASSEMBLY__ | 58 | #ifndef __ASSEMBLY__ |
59 | 59 | ||
60 | #include <linux/compiler.h> | ||
60 | #include <linux/linkage.h> | 61 | #include <linux/linkage.h> |
61 | #include <linux/irqflags.h> | 62 | #include <linux/irqflags.h> |
62 | 63 | ||
@@ -104,7 +105,7 @@ struct mm_struct; | |||
104 | extern void show_pte(struct mm_struct *mm, unsigned long addr); | 105 | extern void show_pte(struct mm_struct *mm, unsigned long addr); |
105 | extern void __show_regs(struct pt_regs *); | 106 | extern void __show_regs(struct pt_regs *); |
106 | 107 | ||
107 | extern int cpu_architecture(void); | 108 | extern int __pure cpu_architecture(void); |
108 | extern void cpu_init(void); | 109 | extern void cpu_init(void); |
109 | 110 | ||
110 | void arm_machine_restart(char mode, const char *cmd); | 111 | void arm_machine_restart(char mode, const char *cmd); |