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

Commit eb08f541 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "clocksource: arch_timer: make virtual counter access configurable"

parents cc61138e dc9b4c45
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -385,6 +385,14 @@ config SUN50I_ERRATUM_UNKNOWN1
	  the Allwinner A64 SoC. The workaround will only be active if the
	  allwinner,erratum-unknown1 property is found in the timer node.

config ARM_ARCH_TIMER_VCT_ACCESS
	bool "Support for ARM architected timer virtual counter access in userspace"
	default !ARM64
	depends on ARM_ARCH_TIMER
	help
	  This option enables support for reading the ARM architected timer's
	  virtual counter in userspace.

config ARM_GLOBAL_TIMER
	bool "Support for the ARM global timer" if COMPILE_TEST
	select TIMER_OF if OF
+2 −1
Original line number Diff line number Diff line
@@ -853,7 +853,8 @@ static void arch_counter_set_user_access(void)
	 * need to be workaround. The vdso may have been already
	 * disabled though.
	 */
	if (arch_timer_this_cpu_has_cntvct_wa())
	if (arch_timer_this_cpu_has_cntvct_wa() ||
	    !IS_ENABLED(CONFIG_ARM_ARCH_TIMER_VCT_ACCESS))
		pr_info("CPU%d: Trapping CNTVCT access\n", smp_processor_id());
	else
		cntkctl |= ARCH_TIMER_USR_VCT_ACCESS_EN;