Author: andrew Date: Tue Nov 29 13:32:23 2016 New Revision: 309296 URL: https://svnweb.freebsd.org/changeset/base/309296
Log: We only use the cpu0 variable in the FDT code. Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation Modified: head/sys/arm64/arm64/mp_machdep.c Modified: head/sys/arm64/arm64/mp_machdep.c ============================================================================== --- head/sys/arm64/arm64/mp_machdep.c Tue Nov 29 13:11:00 2016 (r309295) +++ head/sys/arm64/arm64/mp_machdep.c Tue Nov 29 13:32:23 2016 (r309296) @@ -106,12 +106,14 @@ struct pcb stoppcbs[MAXCPU]; static device_t cpu_list[MAXCPU]; +#ifdef FDT /* * Not all systems boot from the first CPU in the device tree. To work around * this we need to find which CPU we have booted from so when we later * enable the secondary CPUs we skip this one. */ static int cpu0 = -1; +#endif void mpentry(unsigned long cpuid); void init_secondary(uint64_t); _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"