summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2007-05-19 05:03:59 +0000
committerkan <kan@FreeBSD.org>2007-05-19 05:03:59 +0000
commitc72540f5823b7fa155fad35cc7aa2106f364baad (patch)
treeb9fbf03bbfc386be041b6495124a8180b8f11b7f /sys
parentad6731806a500ad8020ee05d5d31881b770c6785 (diff)
downloadFreeBSD-src-c72540f5823b7fa155fad35cc7aa2106f364baad.zip
FreeBSD-src-c72540f5823b7fa155fad35cc7aa2106f364baad.tar.gz
Remove extern struct pcpu __pcpu[]; from the header file and
move it the the only file where it appears to be used.
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/mp_machdep.c2
-rw-r--r--sys/amd64/include/md_var.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c
index ea306b1..4066866 100644
--- a/sys/amd64/amd64/mp_machdep.c
+++ b/sys/amd64/amd64/mp_machdep.c
@@ -80,6 +80,8 @@ int mp_naps; /* # of Applications processors */
int boot_cpu_id = -1; /* designated BSP */
extern int nkpt;
+extern struct pcpu __pcpu[];
+
/*
* CPU topology map datastructures for HTT.
*/
diff --git a/sys/amd64/include/md_var.h b/sys/amd64/include/md_var.h
index 03220e6..348cb31 100644
--- a/sys/amd64/include/md_var.h
+++ b/sys/amd64/include/md_var.h
@@ -57,8 +57,6 @@ extern int szsigcode;
extern uint64_t *vm_page_dump;
extern int vm_page_dump_size;
-extern struct pcpu __pcpu[];
-
typedef void alias_for_inthand_t(u_int cs, u_int ef, u_int esp, u_int ss);
struct thread;
struct reg;
OpenPOWER on IntegriCloud