Date: Sun, 15 May 2016 13:20:59 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299851 - head/sys/arm/arm Message-ID: <201605151320.u4FDKx3x039760@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605151320.u4FDKx3x039760>