Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa50448d authored by Martin Wu's avatar Martin Wu
Browse files

ANDROID: GKI: enable CONFIG_SUN4I_TIMER



Allwinner's SoC timer driver (timer-sun4i.c) has to be built-in rather
than modularized for the following limitations in linux timer framework:
1. tick broadcast installed by insmod cannot switch to oneshot mode
   correctly
2. cpus cannot enter cpuidle state due to the issue above.
3. rcu warnings will appear if we forcibly re-enable tick-broadcast
   for each cpu when new tick broadcast device is installed by insmod
   (timer-sun4i.c in our case)

Bug: 173667601
Change-Id: If077db348c027ec02549e25eee3e17c2cc429644
Signed-off-by: default avatarMartin Wu <wuyan@allwinnertech.com>
parent 034d5a95
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -445,6 +445,7 @@ CONFIG_COMMON_CLK_SCPI=y
# CONFIG_CLK_SUNXI is not set
# CONFIG_CLK_SUNXI is not set
# CONFIG_SUNXI_CCU is not set
# CONFIG_SUNXI_CCU is not set
CONFIG_HWSPINLOCK=y
CONFIG_HWSPINLOCK=y
CONFIG_SUN4I_TIMER=y
# CONFIG_SUN50I_ERRATUM_UNKNOWN1 is not set
# CONFIG_SUN50I_ERRATUM_UNKNOWN1 is not set
CONFIG_MTK_TIMER=y
CONFIG_MTK_TIMER=y
CONFIG_MAILBOX=y
CONFIG_MAILBOX=y
+1 −1
Original line number Original line Diff line number Diff line
@@ -127,7 +127,7 @@ config RDA_TIMER
	  Enables the support for the RDA Micro timer driver.
	  Enables the support for the RDA Micro timer driver.


config SUN4I_TIMER
config SUN4I_TIMER
	bool "Sun4i timer driver" if COMPILE_TEST
	bool "Sun4i timer driver"
	depends on HAS_IOMEM
	depends on HAS_IOMEM
	select CLKSRC_MMIO
	select CLKSRC_MMIO
	select TIMER_OF
	select TIMER_OF