Make COUNT_IPIS and COUNT_XINVLTLB_HITS real kernel options and take

them out of machine/smptests.h.
This commit is contained in:
John Baldwin 2005-11-22 22:54:42 +00:00
parent e36e973da9
commit c21ba8d166
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152701
5 changed files with 7 additions and 14 deletions

View File

@ -15,6 +15,8 @@ POWERFAIL_NMI opt_trap.h
PPC_DEBUG opt_ppc.h
PPC_PROBE_CHIPSET opt_ppc.h
MP_WATCHDOG opt_mp_watchdog.h
COUNT_XINVLTLB_HITS opt_smp.h
COUNT_IPIS opt_smp.h
# Options for emulators. These should only be used at config time, so
# they are handled like options for static filesystems

View File

@ -57,6 +57,8 @@ options MP_WATCHDOG
# Debugging options.
#
options STOP_NMI # Stop CPUS using NMI instead of IPI
options COUNT_XINVLTLB_HITS # Counters for TLB events
options COUNT_IPIS # Per-CPU IPI interrupt counters

View File

@ -36,9 +36,10 @@
* as well as IPI handlers.
*/
#include "opt_smp.h"
#include <machine/asmacros.h>
#include <machine/apicreg.h>
#include <machine/smptests.h>
#include "assym.s"

View File

@ -31,6 +31,7 @@ __FBSDID("$FreeBSD$");
#include "opt_kstack_pages.h"
#include "opt_mp_watchdog.h"
#include "opt_sched.h"
#include "opt_smp.h"
#if !defined(lint)
#if !defined(SMP)
@ -75,7 +76,6 @@ __FBSDID("$FreeBSD$");
#include <machine/mp_watchdog.h>
#include <machine/pcb.h>
#include <machine/smp.h>
#include <machine/smptests.h> /** COUNT_XINVLTLB_HITS */
#include <machine/specialreg.h>
#include <machine/privatespace.h>

View File

@ -33,16 +33,4 @@
* Various 'tests in progress' and configuration parameters.
*/
/*
* TLB counters.
*
#define COUNT_XINVLTLB_HITS
*/
/*
* Per-CPU IPI interrupt counters.
*
#define COUNT_IPIS
*/
#endif /* _MACHINE_SMPTESTS_H_ */