]> git.karo-electronics.de Git - mv-sheeva.git/commit
ARM: 7029/1: Make cpu_architecture into a global variable
authorDave Martin <dave.martin@linaro.org>
Fri, 19 Aug 2011 16:58:35 +0000 (17:58 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 17 Oct 2011 08:12:40 +0000 (09:12 +0100)
commit2ecccf90f2a6d821af4d33f086d59895e5d3bedc
treed12438e595a0cfa5051187f69a1badddb1b317b3
parent40c6d8aee40e373db75e6b0b4230fc8e8259d7a6
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>
arch/arm/include/asm/system.h
arch/arm/kernel/setup.c