diff options
| author | Attilio Rao <attilio@FreeBSD.org> | 2011-06-26 17:30:46 +0000 |
|---|---|---|
| committer | Attilio Rao <attilio@FreeBSD.org> | 2011-06-26 17:30:46 +0000 |
| commit | cfdfd32d342a93bf60fbb3f926484c40aec480df (patch) | |
| tree | 6b6a95fc14a52b97aeaad545de8ade163f7f4aef /sys/kern | |
| parent | de138ec703c3f7d8ed73ba94068d571b2ee7a87c (diff) | |
| parent | 9134df8b6f936328aa7a2daed7af14905c8b69a1 (diff) | |
Notes
Diffstat (limited to 'sys/kern')
| -rw-r--r-- | sys/kern/subr_kdb.c | 17 | ||||
| -rw-r--r-- | sys/kern/subr_smp.c | 4 | ||||
| -rw-r--r-- | sys/kern/sys_capability.c | 7 |
3 files changed, 2 insertions, 26 deletions
diff --git a/sys/kern/subr_kdb.c b/sys/kern/subr_kdb.c index 3b1838cba437..a7b3b8380b1d 100644 --- a/sys/kern/subr_kdb.c +++ b/sys/kern/subr_kdb.c @@ -88,20 +88,6 @@ SYSCTL_PROC(_debug_kdb, OID_AUTO, trap_code, CTLTYPE_INT | CTLFLAG_RW, NULL, 0, kdb_sysctl_trap_code, "I", "set to cause a page fault via code access"); /* - * Flag indicating whether or not to IPI the other CPUs to stop them on - * entering the debugger. Sometimes, this will result in a deadlock as - * stop_cpus() waits for the other cpus to stop, so we allow it to be - * disabled. In order to maximize the chances of success, use a hard - * stop for that. - */ -#ifdef SMP -static int kdb_stop_cpus = 1; -SYSCTL_INT(_debug_kdb, OID_AUTO, stop_cpus, CTLFLAG_RW | CTLFLAG_TUN, - &kdb_stop_cpus, 0, "stop other CPUs when entering the debugger"); -TUNABLE_INT("debug.kdb.stop_cpus", &kdb_stop_cpus); -#endif - -/* * Flag to indicate to debuggers why the debugger was entered. */ const char * volatile kdb_why = KDB_WHY_UNSET; @@ -565,8 +551,7 @@ kdb_trap(int type, int code, struct trapframe *tf) kdb_active--; #ifdef SMP - if (did_stop_cpus) - restart_cpus(stopped_cpus); + restart_cpus(stopped_cpus); #endif intr_restore(intr); diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c index 72dd3f2d470f..caec965d7aa0 100644 --- a/sys/kern/subr_smp.c +++ b/sys/kern/subr_smp.c @@ -236,12 +236,10 @@ generic_stop_cpus(cpuset_t map, u_int type) /* spin */ cpu_spinwait(); i++; -#ifdef DIAGNOSTIC - if (i == 100000) { + if (i == 100000000) { printf("timeout stopping cpus\n"); break; } -#endif } stopping_cpu = NOCPU; diff --git a/sys/kern/sys_capability.c b/sys/kern/sys_capability.c index 89dc923d9b0b..c6d9826c804f 100644 --- a/sys/kern/sys_capability.c +++ b/sys/kern/sys_capability.c @@ -64,13 +64,6 @@ __FBSDID("$FreeBSD$"); FEATURE(security_capabilities, "Capsicum Capability Mode"); /* - * We don't currently have any MIB entries for sysctls, but we do expose - * security.capabilities so that it's easy to tell if options CAPABILITIES is - * compiled into the kernel. - */ -SYSCTL_NODE(_security, OID_AUTO, capabilities, CTLFLAG_RW, 0, "Capsicum"); - -/* * System call to enter capability mode for the process. */ int |
