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

Commit 7b7ffc8c authored by Runmin Wang's avatar Runmin Wang Committed by Gerrit - the friendly Code Review server
Browse files

Revert "clocksource: arch_timer: Enable user access to the physical counter"



Disable user access to physical counter. This reverts
commit <f1a1ad6d>("clocksource: arch_timer: Enable
user access to the physical counter").

This could potentially break the userspace applications
using physical counters; but all those usages should
move to using virtual counter, to get the timing
information.

Change-Id: I653816a93515507a400ff23dbaa4442bf614a79b
Signed-off-by: default avatarNeeraj Upadhyay <neeraju@codeaurora.org>
Signed-off-by: default avatarKyle Yan <kyan@codeaurora.org>
Signed-off-by: default avatarRunmin Wang <runminw@codeaurora.org>
parent 66ad6f80
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -780,9 +780,6 @@ static void arch_counter_set_user_access(void)
	else
		cntkctl |= ARCH_TIMER_USR_VCT_ACCESS_EN;

	/* Enable user access to the physical counters */
	cntkctl |= ARCH_TIMER_USR_PCT_ACCESS_EN;

	arch_timer_set_cntkctl(cntkctl);
}