sh: Let SH_TIMER_CMT select GENERIC_TIME
PATCH 5/5 sh: Let SH_TIMER_CMT select GENERIC_TIME
From: Magnus Damm <[email protected]>
Let SH_TIMER_CMT select GENERIC_TIME. This since GENERIC_TIME is required to build the CMT driver. Without this patch the TMU driver must be enabled for the CMT driver to build.
---
arch/sh/Kconfig | 1 + 1 file changed, 1 insertion(+)
arch/sh/Kconfig +1 -0
@@ -431,6 +431,7 @@ config SH_CMT config SH_TIMER_CMT bool "CMT clockevents driver" depends on SYS_SUPPORTS_CMT && !SH_CMT + select GENERIC_TIME select GENERIC_CLOCKEVENTS config SH_MTU2
Quoted 15 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Let
SH_TIMER_CMTselectGENERIC_TIME. This sinceGENERIC_TIMEis required to build the CMT driver. Without this patch the TMU driver must be enabled for the CMT driver to build.Signed-off-by Magnus Damm <[email protected]>---
arch/sh/Kconfig | 1 + 1 file changed, 1 insertion(+)
arch/sh/Kconfig config SH_CMT · line 436
Quoted 6 lines
arch/sh/Kconfig +1
-0@@ -431,6 +431,7 @@ config SH_CMT config SH_TIMER_CMT bool "CMT clockevents driver" depends on SYS_SUPPORTS_CMT && !SH_CMT + select GENERIC_TIME select GENERIC_CLOCKEVENTS
We can't do this yet, as the mtu2 sys_timer code is not GENERIC_TIME ready. So if one uses that in conjunction with SH_TIMER_CMT, it will blow up. Once the early platform stuff is merged and we can use the new CMT code for jiffies, then I will change the Kconfig bits around to prevent any sys_timer drivers being enabled, and at that point this can be applied.