diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-11-26 11:59:41 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-11-26 11:59:41 +0000 |
commit | 6b2093906b482d40261167ca86676aa85c1bb180 (patch) | |
tree | cc96bda731370ef895c18f199b1496d59815360d /sys/arch | |
parent | e6ff7c246c395e49754b523388f8a7c5d79e1312 (diff) |
Nuke the unused variable cpus_attached. It is unused and 32 bits
aren't enough to keep track of possible cores these days anyway.
36-core amd64 box encountered by dlg@
ok dlg@ kettenis@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/amd64/cpu.c | 6 | ||||
-rw-r--r-- | sys/arch/amd64/include/cpu.h | 4 |
2 files changed, 2 insertions, 8 deletions
diff --git a/sys/arch/amd64/amd64/cpu.c b/sys/arch/amd64/amd64/cpu.c index 0a29134d946..2089a1a5b7c 100644 --- a/sys/arch/amd64/amd64/cpu.c +++ b/sys/arch/amd64/amd64/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.38 2010/11/13 04:16:42 guenther Exp $ */ +/* $OpenBSD: cpu.c,v 1.39 2010/11/26 11:59:40 krw Exp $ */ /* $NetBSD: cpu.c,v 1.1 2003/04/26 18:39:26 fvdl Exp $ */ /*- @@ -135,8 +135,6 @@ struct cpu_info cpu_info_primary = { 0, &cpu_info_primary }; struct cpu_info *cpu_info_list = &cpu_info_primary; -u_int32_t cpus_attached = 0; - #ifdef MULTIPROCESSOR /* * Array of CPU info structures. Must be statically-allocated because @@ -346,8 +344,6 @@ cpu_attach(struct device *parent, struct device *self, void *aux) } cpu_vm_init(ci); - cpus_attached |= (1 << ci->ci_cpuid); - #if defined(MULTIPROCESSOR) if (mp_verbose) { printf("%s: kstack at 0x%lx for %d bytes\n", diff --git a/sys/arch/amd64/include/cpu.h b/sys/arch/amd64/include/cpu.h index d3ff2e76c35..2ae64ca5354 100644 --- a/sys/arch/amd64/include/cpu.h +++ b/sys/arch/amd64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.60 2010/11/22 21:07:18 miod Exp $ */ +/* $OpenBSD: cpu.h,v 1.61 2010/11/26 11:59:40 krw Exp $ */ /* $NetBSD: cpu.h,v 1.1 2003/04/26 18:39:39 fvdl Exp $ */ /*- @@ -211,8 +211,6 @@ extern struct cpu_info cpu_info_primary; #define aston(p) ((p)->p_md.md_astpending = 1) -extern u_int32_t cpus_attached; - #define curpcb curcpu()->ci_curpcb /* |