]> git.karo-electronics.de Git - karo-tx-linux.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>
Thu, 8 Sep 2011 09:12:41 +0000 (10:12 +0100)
commitec9d39bfc179e972e4d9ee23b4109e171154a7c2
tree050f985bf072c3c9a44edeffaacf12af6997adc6
parent08e3459252436b61fa96a303661e8540add9988e
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