Move the SYSINIT to allow userspace access to the ARM generic timer later

in the boot. It doesn't need to be early, so move it to the SI_ORDER_ANY
stage of SI_SUB_SMP.

Sponsored by:	DARPA, AFRL
This commit is contained in:
Andrew Turner 2018-06-20 11:13:10 +00:00
parent 1d802c646c
commit c30e5927b6

View File

@ -243,7 +243,7 @@ tmr_setup_user_access(void *arg __unused)
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);
SYSINIT(tmr_ua, SI_SUB_SMP, SI_ORDER_ANY, tmr_setup_user_access, NULL);
static unsigned
arm_tmr_get_timecount(struct timecounter *tc)