Date: Tue, 6 Oct 2020 23:16:57 +0000 (UTC) From: Mitchell Horne <mhorne@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r366503 - in head/sys: kern sys x86/x86 Message-ID: <202010062316.096NGvnW070651@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mhorne Date: Tue Oct 6 23:16:56 2020 New Revision: 366503 URL: https://svnweb.freebsd.org/changeset/base/366503 Log: Remove unused function cpu_boot() The prototype was added with the creation of kern_shutdown.c in r17658, but it appears to have never been implemented. Remove it now. Reviewed by: cem, kib Differential Revision: https://reviews.freebsd.org/D26702 Modified: head/sys/kern/kern_shutdown.c head/sys/sys/systm.h head/sys/x86/x86/cpu_machdep.c Modified: head/sys/kern/kern_shutdown.c ============================================================================== --- head/sys/kern/kern_shutdown.c Tue Oct 6 22:53:11 2020 (r366502) +++ head/sys/kern/kern_shutdown.c Tue Oct 6 23:16:56 2020 (r366503) @@ -668,7 +668,6 @@ shutdown_reset(void *junk, int howto) spinlock_enter(); #endif - /* cpu_boot(howto); */ /* doesn't do anything at the moment */ cpu_reset(); /* NOTREACHED */ /* assuming reset worked */ } Modified: head/sys/sys/systm.h ============================================================================== --- head/sys/sys/systm.h Tue Oct 6 22:53:11 2020 (r366502) +++ head/sys/sys/systm.h Tue Oct 6 23:16:56 2020 (r366503) @@ -268,7 +268,6 @@ void *phashinit_flags(int count, struct malloc_type *t int flags); void g_waitidle(void); -void cpu_boot(int); void cpu_flush_dcache(void *, size_t); void cpu_rootconf(void); void critical_enter_KBI(void); Modified: head/sys/x86/x86/cpu_machdep.c ============================================================================== --- head/sys/x86/x86/cpu_machdep.c Tue Oct 6 22:53:11 2020 (r366502) +++ head/sys/x86/x86/cpu_machdep.c Tue Oct 6 23:16:56 2020 (r366503) @@ -194,17 +194,6 @@ SYSCTL_BOOL(_machdep, OID_AUTO, mwait_cpustop_broken, "Can not reliably wake MONITOR/MWAIT cpus without interrupts"); /* - * Machine dependent boot() routine - * - * I haven't seen anything to put here yet - * Possibly some stuff might be grafted back here from boot() - */ -void -cpu_boot(int howto) -{ -} - -/* * Flush the D-cache for non-DMA I/O so that the I-cache can * be made coherent later. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010062316.096NGvnW070651>