arm64: Print CPU features slightly earlier

In particular, print them before we release APs.  Otherwise they tend to
get mixed with other kernel messages.

Reviewed by:	andrew, manu
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D31242
This commit is contained in:
Mark Johnston 2021-07-20 12:06:01 -04:00
parent 8bc3dc0100
commit fa46a46a82

View File

@ -1316,7 +1316,8 @@ cpu_features_sysinit(void *dummy __unused)
CPU_FOREACH(cpu)
print_cpu_features(cpu);
}
SYSINIT(cpu_features, SI_SUB_SMP, SI_ORDER_ANY, cpu_features_sysinit, NULL);
/* Log features before APs are released and start printing to the dmesg. */
SYSINIT(cpu_features, SI_SUB_SMP - 1, SI_ORDER_ANY, cpu_features_sysinit, NULL);
static u_long
parse_cpu_features_hwcap(void)