Skip to content

Commit

Permalink
MIPS: Move 'gic_frequency' to common location.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven J. Hill authored and Ralf Baechle committed May 9, 2013
1 parent ff86714 commit 28ea215
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/mips/include/asm/gic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down
1 change: 1 addition & 0 deletions arch/mips/kernel/irq-gic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion arch/mips/mti-malta/malta-time.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 28ea215

Please sign in to comment.