Commit 6661039d authored by Soren Brinkmann's avatar Soren Brinkmann Committed by Daniel Lezcano

clocksource/arm_global_timer: Set FEAT_PERCPU flag

The arm_global_timer is a per cpu device. Set the appropriate flag.
Signed-off-by: default avatarSoren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: default avatarMichal Simek <michal.simek@xilinx.com>
Acked-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@st.com>
parent 3713c0cf
...@@ -169,7 +169,8 @@ static int gt_clockevents_init(struct clock_event_device *clk) ...@@ -169,7 +169,8 @@ static int gt_clockevents_init(struct clock_event_device *clk)
int cpu = smp_processor_id(); int cpu = smp_processor_id();
clk->name = "arm_global_timer"; 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_mode = gt_clockevent_set_mode;
clk->set_next_event = gt_clockevent_set_next_event; clk->set_next_event = gt_clockevent_set_next_event;
clk->cpumask = cpumask_of(cpu); clk->cpumask = cpumask_of(cpu);
......
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