diff options
Diffstat (limited to 'arch/mips/kernel/cevt-gic.c')
-rw-r--r-- | arch/mips/kernel/cevt-gic.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/kernel/cevt-gic.c b/arch/mips/kernel/cevt-gic.c index 594cbbf16d62..6093716980b9 100644 --- a/arch/mips/kernel/cevt-gic.c +++ b/arch/mips/kernel/cevt-gic.c | |||
@@ -26,7 +26,7 @@ static int gic_next_event(unsigned long delta, struct clock_event_device *evt) | |||
26 | 26 | ||
27 | cnt = gic_read_count(); | 27 | cnt = gic_read_count(); |
28 | cnt += (u64)delta; | 28 | cnt += (u64)delta; |
29 | gic_write_compare(cnt); | 29 | gic_write_cpu_compare(cnt, cpumask_first(evt->cpumask)); |
30 | res = ((int)(gic_read_count() - cnt) >= 0) ? -ETIME : 0; | 30 | res = ((int)(gic_read_count() - cnt) >= 0) ? -ETIME : 0; |
31 | return res; | 31 | return res; |
32 | } | 32 | } |
@@ -73,7 +73,8 @@ int gic_clockevent_init(void) | |||
73 | cd = &per_cpu(gic_clockevent_device, cpu); | 73 | cd = &per_cpu(gic_clockevent_device, cpu); |
74 | 74 | ||
75 | cd->name = "MIPS GIC"; | 75 | cd->name = "MIPS GIC"; |
76 | cd->features = CLOCK_EVT_FEAT_ONESHOT; | 76 | cd->features = CLOCK_EVT_FEAT_ONESHOT | |
77 | CLOCK_EVT_FEAT_C3STOP; | ||
77 | 78 | ||
78 | clockevent_set_clock(cd, gic_frequency); | 79 | clockevent_set_clock(cd, gic_frequency); |
79 | 80 | ||