summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/cpu.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-12-07 22:30:11 +0000
committerphk <phk@FreeBSD.org>2000-12-07 22:30:11 +0000
commit4d72a662f7e8a0015ddd577c084db6334f4c5965 (patch)
tree5dbcb0898b7579d828f6f6a80c3a11a3af1450e5 /sys/amd64/include/cpu.h
parentbb0064c3c5e270a73f6165ab6cbc48cbff1d5997 (diff)
downloadFreeBSD-src-4d72a662f7e8a0015ddd577c084db6334f4c5965.zip
FreeBSD-src-4d72a662f7e8a0015ddd577c084db6334f4c5965.tar.gz
Move extern tsc_present outside function to quelch a warning.
Diffstat (limited to 'sys/amd64/include/cpu.h')
-rw-r--r--sys/amd64/include/cpu.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/amd64/include/cpu.h b/sys/amd64/include/cpu.h
index d7e2160..4c6cb43 100644
--- a/sys/amd64/include/cpu.h
+++ b/sys/amd64/include/cpu.h
@@ -135,6 +135,10 @@ extern char etext[];
void fork_trampoline __P((void));
void fork_return __P((struct proc *, struct trapframe));
+#if defined(I386_CPU) || defined(I486_CPU)
+extern u_int tsc_present;
+#endif
+
/*
* Return contents of in-cpu fast counter as a sort of "bogo-time"
* for non-critical timing.
@@ -143,7 +147,6 @@ static __inline u_int64_t
get_cyclecount(void)
{
#if defined(I386_CPU) || defined(I486_CPU)
- extern u_int tsc_present;
struct timespec tv;
if (!tsc_present) {
OpenPOWER on IntegriCloud