MIPS: Move 'gic_frequency' to common location.
authorSteven J. Hill <Steven.Hill@imgtec.com>
Wed, 10 Apr 2013 21:27:50 +0000 (16:27 -0500)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 9 May 2013 15:55:20 +0000 (17:55 +0200)
Move the global variable 'gic_frequency' to be defined in the file
'arch/mips/kernel/irq-gic.c' instead of defining it individually
for each platform making use of the GIC. Also change the type to
be an unsigned integer instead of signed.

Signed-off-by: Steven J. Hill <Steven.Hill@imgtec.com>
arch/mips/include/asm/gic.h
arch/mips/kernel/irq-gic.c
arch/mips/mti-malta/malta-time.c

index a05f97db0735a2895ac00e8d52cefd69cdcff913..f1a1e986d86b7523d77b2e6b907ddceb30d0af93 100644 (file)
@@ -360,6 +360,7 @@ struct gic_shared_intr_map {
 #define GIC_PIN_TO_VEC_OFFSET  (1)
 
 extern unsigned int gic_present;
+extern unsigned int gic_frequency;
 extern unsigned long _gic_base;
 extern unsigned int gic_irq_base;
 extern unsigned int gic_irq_flags[];
index 130aec6f0644515e7809a1a5af2d9e3018551735..eaf7c1eb873eec59d52df3ee4218b9e5db0233bf 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/hardirq.h>
 #include <asm-generic/bitops/find.h>
 
+unsigned int gic_frequency;
 unsigned int gic_present;
 unsigned long _gic_base;
 unsigned int gic_irq_base;
index 4dbdb2cbdf43266a4522d48cf0211da07987436d..381ad062f192d2353259569c640586d0b65c2599 100644 (file)
@@ -42,7 +42,6 @@
 #include <asm/mips-boards/maltaint.h>
 
 unsigned long cpu_khz;
-int gic_frequency;
 
 static int mips_cpu_timer_irq;
 static int mips_cpu_perf_irq;