Commit 28ea2151 authored by Steven J. Hill's avatar Steven J. Hill Committed by Ralf Baechle

MIPS: Move 'gic_frequency' to common location.

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: default avatarSteven J. Hill <Steven.Hill@imgtec.com>
parent ff86714f
...@@ -360,6 +360,7 @@ struct gic_shared_intr_map { ...@@ -360,6 +360,7 @@ struct gic_shared_intr_map {
#define GIC_PIN_TO_VEC_OFFSET (1) #define GIC_PIN_TO_VEC_OFFSET (1)
extern unsigned int gic_present; extern unsigned int gic_present;
extern unsigned int gic_frequency;
extern unsigned long _gic_base; extern unsigned long _gic_base;
extern unsigned int gic_irq_base; extern unsigned int gic_irq_base;
extern unsigned int gic_irq_flags[]; extern unsigned int gic_irq_flags[];
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <linux/hardirq.h> #include <linux/hardirq.h>
#include <asm-generic/bitops/find.h> #include <asm-generic/bitops/find.h>
unsigned int gic_frequency;
unsigned int gic_present; unsigned int gic_present;
unsigned long _gic_base; unsigned long _gic_base;
unsigned int gic_irq_base; unsigned int gic_irq_base;
......
...@@ -42,7 +42,6 @@ ...@@ -42,7 +42,6 @@
#include <asm/mips-boards/maltaint.h> #include <asm/mips-boards/maltaint.h>
unsigned long cpu_khz; unsigned long cpu_khz;
int gic_frequency;
static int mips_cpu_timer_irq; static int mips_cpu_timer_irq;
static int mips_cpu_perf_irq; static int mips_cpu_perf_irq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment