]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Only register as the platform DELAY() implementation if the setup of the
authorian <ian@FreeBSD.org>
Sun, 18 Jun 2017 17:26:54 +0000 (17:26 +0000)
committerian <ian@FreeBSD.org>
Sun, 18 Jun 2017 17:26:54 +0000 (17:26 +0000)
commit56fe240b0770afd48b53421d10cd103a8965abf2
tree4e4bab1b49b8a3c9cc8b8ed235e6c083666a0a8c
parentc8d732dce12599bb992d1545358a02f90c1a40b7
Only register as the platform DELAY() implementation if the setup of the
global timer was successful, since the implementation tries to read it.

Notably, if the platform has a variable-frequency global timer (because
of dynamic frequency scaling), it doesn't set up the global timer for use
as a system timecounter, and in that case it also can't use it for DELAY.
Such platforms use different timer hardware for both timecounter and DELAY.
sys/arm/arm/mpcore_timer.c