clocksource/arm_global_timer: Set FEAT_PERCPU flag
authorSoren Brinkmann <[email protected]>
Wed, 18 Sep 2013 18:48:36 +0000 (11:48 -0700)
committerDaniel Lezcano <[email protected]>
Wed, 2 Oct 2013 09:33:46 +0000 (11:33 +0200)
The arm_global_timer is a per cpu device. Set the appropriate flag.

Signed-off-by: Soren Brinkmann <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Acked-by: Michal Simek <[email protected]>
Acked-by: Srinivas Kandagatla <[email protected]>
drivers/clocksource/arm_global_timer.c

index b66c1f36066ced2f7bc8ae68677397fddfb3f4f0..c639b1a9e99686fb3333fc825c65d84e3cc52bae 100644 (file)
@@ -169,7 +169,8 @@ static int gt_clockevents_init(struct clock_event_device *clk)
        int cpu = smp_processor_id();
 
        clk->name = "arm_global_timer";
-       clk->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT;
+       clk->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT |
+               CLOCK_EVT_FEAT_PERCPU;
        clk->set_mode = gt_clockevent_set_mode;
        clk->set_next_event = gt_clockevent_set_next_event;
        clk->cpumask = cpumask_of(cpu);