Skip to content

Commit

Permalink
arm: zynq: timer: Set clock_event cpumask
Browse files Browse the repository at this point in the history
The timers are common to both A9 cores, so let's set the clock
event struct's cpumask accordingly, to all possible CPUs.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Tested-by: Josh Cartwright <josh.cartwright@ni.com>
  • Loading branch information
Soren Brinkmann authored and Michal Simek committed Jan 28, 2013
1 parent 03377e5 commit 87e4ee7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-zynq/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ static void __init zynq_ttc_setup_clockevent(struct device_node *np,
ttcce->ce.set_mode = xttcps_set_mode;
ttcce->ce.rating = 200;
ttcce->ce.irq = irq;
ttcce->ce.cpumask = cpu_possible_mask;

__raw_writel(0x23, ttcce->xttc.base_addr + XTTCPS_CNT_CNTRL_OFFSET);
__raw_writel(CLK_CNTRL_PRESCALE | CLK_CNTRL_PRESCALE_EN,
Expand Down

0 comments on commit 87e4ee7

Please sign in to comment.