diff options
Diffstat (limited to 'drivers/clocksource')
| -rw-r--r-- | drivers/clocksource/mips-gic-timer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clocksource/mips-gic-timer.c b/drivers/clocksource/mips-gic-timer.c index 2603f50e5706..bced17d2d2c1 100644 --- a/drivers/clocksource/mips-gic-timer.c +++ b/drivers/clocksource/mips-gic-timer.c | |||
| @@ -17,6 +17,7 @@ | |||
| 17 | 17 | ||
| 18 | static DEFINE_PER_CPU(struct clock_event_device, gic_clockevent_device); | 18 | static DEFINE_PER_CPU(struct clock_event_device, gic_clockevent_device); |
| 19 | static int gic_timer_irq_installed; | 19 | static int gic_timer_irq_installed; |
| 20 | static unsigned int gic_frequency; | ||
| 20 | 21 | ||
| 21 | static int gic_next_event(unsigned long delta, struct clock_event_device *evt) | 22 | static int gic_next_event(unsigned long delta, struct clock_event_device *evt) |
| 22 | { | 23 | { |
| @@ -112,6 +113,8 @@ static struct clocksource gic_clocksource = { | |||
| 112 | 113 | ||
| 113 | void __init gic_clocksource_init(unsigned int frequency) | 114 | void __init gic_clocksource_init(unsigned int frequency) |
| 114 | { | 115 | { |
| 116 | gic_frequency = frequency; | ||
| 117 | |||
| 115 | /* Set clocksource mask. */ | 118 | /* Set clocksource mask. */ |
| 116 | gic_clocksource.mask = CLOCKSOURCE_MASK(gic_get_count_width()); | 119 | gic_clocksource.mask = CLOCKSOURCE_MASK(gic_get_count_width()); |
| 117 | 120 | ||
