aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/mach/arch.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-12-20 10:18:36 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-12-24 09:49:51 +0000
commit8ff1443c5439ecee7472b80cf12ecfc337e6ee98 (patch)
treeb6899444bc0b66a016d29271c5d70e8ad43db5ca /arch/arm/include/asm/mach/arch.h
parentARM: 6538/1: Subarch IRQ handler macros V3 (diff)
downloadlinux-dev-8ff1443c5439ecee7472b80cf12ecfc337e6ee98.tar.xz
linux-dev-8ff1443c5439ecee7472b80cf12ecfc337e6ee98.zip
ARM: simplify early machine init hooks
Rather than storing each machine init hook separately, store a pointer to the machine description record and dereference this instead. This pointer is only available while the init sections are present, which is not a problem as we only use it from init code. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/mach/arch.h')
-rw-r--r--arch/arm/include/asm/mach/arch.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/include/asm/mach/arch.h b/arch/arm/include/asm/mach/arch.h
index 7d55356110d4..69908ddbaf18 100644
--- a/arch/arm/include/asm/mach/arch.h
+++ b/arch/arm/include/asm/mach/arch.h
@@ -46,6 +46,11 @@ struct machine_desc {
};
/*
+ * Current machine - only accessible during boot.
+ */
+extern struct machine_desc *machine_desc;
+
+/*
* Set of macros to define architecture features. This is built into
* a table by the linker.
*/