Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clocksource/drivers/exynos_mct: Increase the size of name array

Variable _name_ hold mct_tick number per cpu and it is currently
limited to 10. Which restrict the scalability of the MCT driver for
the SoC which has more local timers interrupts (>= 12).
Increase the length of it to make mct_tick printed correctly for
each local timer interrupts per CPU.

Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20220221174547.26176-3-alim.akhtar@samsung.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

authored by

Alim Akhtar and committed by
Daniel Lezcano
0a3a4b9d f49b82a0

+5 -1
+5 -1
drivers/clocksource/exynos_mct.c
··· 80 80 struct mct_clock_event_device { 81 81 struct clock_event_device evt; 82 82 unsigned long base; 83 - char name[10]; 83 + /** 84 + * The length of the name must be adjusted if number of 85 + * local timer interrupts grow over two digits 86 + */ 87 + char name[11]; 84 88 }; 85 89 86 90 static void exynos4_mct_write(unsigned int value, unsigned long offset)