aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-vexpress/include/mach/tc2.h
diff options
context:
space:
mode:
authorAchin Gupta <achin.gupta@arm.com>2013-03-10 22:36:51 +0000
committerJon Medhurst <tixy@linaro.org>2013-05-03 13:50:06 +0100
commitd7100bcd5899eea0bf1eb45e9bccd3fd783ae252 (patch)
tree6283913b84676c8d4a0c2c34b95aebb7d3347981 /arch/arm/mach-vexpress/include/mach/tc2.h
parent892404cc9460bdc9156ec0ca3ac27c6f20539213 (diff)
downloadvexpress-lsk-d7100bcd5899eea0bf1eb45e9bccd3fd783ae252.tar.gz
ARM: TC2: replace hard coded cluster and cpu values with constants
This patch adds constants in a tc2 specific header file to prevent use of hard coded values for specifying the number of cpus and clusters. Signed-off-by: Achin Gupta <achin.gupta@arm.com> Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Diffstat (limited to 'arch/arm/mach-vexpress/include/mach/tc2.h')
-rw-r--r--arch/arm/mach-vexpress/include/mach/tc2.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-vexpress/include/mach/tc2.h b/arch/arm/mach-vexpress/include/mach/tc2.h
new file mode 100644
index 00000000000..d3b5a2225a0
--- /dev/null
+++ b/arch/arm/mach-vexpress/include/mach/tc2.h
@@ -0,0 +1,10 @@
+#ifndef __MACH_TC2_H
+#define __MACH_TC2_H
+
+/*
+ * cpu and cluster limits
+ */
+#define TC2_MAX_CPUS 3
+#define TC2_MAX_CLUSTERS 2
+
+#endif