summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2008-04-13 11:35:56 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2008-04-13 11:35:56 +0000
commit7f65824c2c2fca6178d183c1d1f4f0d6060e4227 (patch)
treecf007d192f999dd6d5603bc5a7290a18d2ee0d79 /sys/arch/amd64
parent419a4a99b524ca9639c26a37c7aee39c387f0626 (diff)
garbage collect the cpus_running global variable;
pointed out by and ok drahn@, toby@;
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/cpu.c5
-rw-r--r--sys/arch/amd64/include/cpuvar.h6
2 files changed, 2 insertions, 9 deletions
diff --git a/sys/arch/amd64/amd64/cpu.c b/sys/arch/amd64/amd64/cpu.c
index 5e212349c25..c334b36567b 100644
--- a/sys/arch/amd64/amd64/cpu.c
+++ b/sys/arch/amd64/amd64/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.16 2007/11/16 16:16:07 deraadt Exp $ */
+/* $OpenBSD: cpu.c,v 1.17 2008/04/13 11:35:55 thib Exp $ */
/* $NetBSD: cpu.c,v 1.1 2003/04/26 18:39:26 fvdl Exp $ */
/*-
@@ -151,8 +151,6 @@ u_int32_t cpus_attached = 0;
*/
struct cpu_info *cpu_info[MAXCPUS] = { &cpu_info_primary };
-u_int32_t cpus_running = 0;
-
void cpu_hatch(void *);
static void cpu_boot_secondary(struct cpu_info *ci);
static void cpu_start_secondary(struct cpu_info *ci);
@@ -397,7 +395,6 @@ cpu_init(struct cpu_info *ci)
#ifdef MULTIPROCESSOR
ci->ci_flags |= CPUF_RUNNING;
- cpus_running |= 1 << ci->ci_cpuid;
#endif
}
diff --git a/sys/arch/amd64/include/cpuvar.h b/sys/arch/amd64/include/cpuvar.h
index b821592e1b8..fa3e0b656c5 100644
--- a/sys/arch/amd64/include/cpuvar.h
+++ b/sys/arch/amd64/include/cpuvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpuvar.h,v 1.1 2004/01/28 01:39:39 mickey Exp $ */
+/* $OpenBSD: cpuvar.h,v 1.2 2008/04/13 11:35:55 thib Exp $ */
/* $NetBSD: cpuvar.h,v 1.1 2003/03/01 18:29:28 fvdl Exp $ */
/*-
@@ -94,10 +94,6 @@ struct cpu_attach_args {
#ifdef _KERNEL
-#ifdef MULTIPROCESSOR
-extern u_int32_t cpus_running;
-#endif
-
int x86_ipi(int,int,int);
void x86_self_ipi(int);
int x86_ipi_init(int);