clocksource: exynos_mct: Fix too early ISR fire up on wrong CPU
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Tue, 1 Apr 2014 09:30:24 +0000 (11:30 +0200)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 15 May 2014 05:28:22 +0000 (07:28 +0200)
commitb94d1dd318a982f640488cd741117e6cfcf5e059
tree38645979a1ddeb525313f15e547573678a0b2632
parent04530aaeb244013d30b9e9e63b3b6f27b73c2ce6
clocksource: exynos_mct: Fix too early ISR fire up on wrong CPU

After hotplugging CPU1 the first interrupt handler for CPU1 oneshot
timer was called on CPU0 because it fired up before setting IRQ
affinity.

During setup of the MCT timers the clock event device should be
registered after setting the affinity for interrupt. This will prevent
starting the timer to early.

Additionally, if clock event device has interrupt set up, the
clockevents_config_and_register() will also set the affinity for it.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Change-Id: I64fee65b57106ad562f0ecc1160748a9548debad
drivers/clocksource/exynos_mct.c