Skip to content

Commit 8818378

Browse files
willdeacondlezcano
authored andcommitted
clocksource/drivers/exynos_mct: Mark MCT device as CLOCK_EVT_FEAT_PERCPU
The "mct_tick" is a per-cpu clockevents device. Set the CLOCK_EVT_FEAT_PERCPU feature to prevent e.g. mct_tick0 being unsafely designated as the global broadcast timer and instead treat the device as a per-cpu wakeup timer. Cc: Daniel Lezcano <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Krzysztof Kozlowski <[email protected]> Signed-off-by: Will Deacon <[email protected]> Acked-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Chanwoo Choi <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ae460fd commit 8818378

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/clocksource/exynos_mct.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,8 @@ static int exynos4_mct_starting_cpu(unsigned int cpu)
465465
evt->set_state_oneshot = set_state_shutdown;
466466
evt->set_state_oneshot_stopped = set_state_shutdown;
467467
evt->tick_resume = set_state_shutdown;
468-
evt->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT;
468+
evt->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT |
469+
CLOCK_EVT_FEAT_PERCPU;
469470
evt->rating = MCT_CLKEVENTS_RATING,
470471

471472
exynos4_mct_write(TICK_BASE_CNT, mevt->base + MCT_L_TCNTB_OFFSET);

0 commit comments

Comments
 (0)