svn commit: r299851 - head/sys/arm/arm
Emmanuel Vadot
manu at FreeBSD.org
Sun May 15 13:21:00 UTC 2016
Author: manu
Date: Sun May 15 13:20:59 2016
New Revision: 299851
URL: https://svnweb.freebsd.org/changeset/base/299851
Log:
Allow arm generic_timer code to be included even if not present in the
SoC.
Reviewed by: andrew
Approved by: cognet (mentor)
Differential Revision: https://reviews.freebsd.org/D6372
Modified:
head/sys/arm/arm/generic_timer.c
Modified: head/sys/arm/arm/generic_timer.c
==============================================================================
--- head/sys/arm/arm/generic_timer.c Sun May 15 13:17:05 2016 (r299850)
+++ head/sys/arm/arm/generic_timer.c Sun May 15 13:20:59 2016 (r299851)
@@ -214,7 +214,8 @@ static void
tmr_setup_user_access(void *arg __unused)
{
- smp_rendezvous(NULL, setup_user_access, NULL, NULL);
+ if (arm_tmr_sc != NULL)
+ smp_rendezvous(NULL, setup_user_access, NULL, NULL);
}
SYSINIT(tmr_ua, SI_SUB_SMP, SI_ORDER_SECOND, tmr_setup_user_access, NULL);
More information about the svn-src-all
mailing list