Skip to contentSkip to conversation

clocksource/drivers/sprd: Remove the dependency between sprd timer and SPRD arch

PATCH New Nianfu Bai 1 participant 1 message Apr 13, 2021 Clocksource, clockevent drivers

lore
Share & tools
lore

Nianfu Bai

author
#0 lore raw

PATCH 1/1 clocksource/drivers/sprd: Remove the dependency between sprd timer and SPRD arch

From: Nianfu Bai <[email protected]>

Tick broadcast installed by insmod cannot switch to oneshot mode correctly caused by linux timer framework, need to build in kernel image. SPRD_TIMER has been selected by SPRD arch, we have to enable SPRD arch when we build sprd timer in kernel image, this action conflicts with general kernel image, so we need to remove the dependency between sprd timer and SPRD arch.

---
 drivers/clocksource/Kconfig | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/clocksource/Kconfig +1 -3
index 39aa21d..04b333c 100644
@@ -447,10 +447,8 @@ config MTK_TIMER
 	  Support for Mediatek timer driver.
 
 config SPRD_TIMER
-	bool "Spreadtrum timer driver" if EXPERT
+	bool "Spreadtrum timer driver" if COMPILE_TEST
 	depends on HAS_IOMEM
-	depends on (ARCH_SPRD || COMPILE_TEST)
-	default ARCH_SPRD
 	select TIMER_OF
 	help
 	  Enables support for the Spreadtrum timer driver.
Signature · 1 line
1.9.1