diff options
author | phk <phk@FreeBSD.org> | 2000-12-07 22:30:11 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-12-07 22:30:11 +0000 |
commit | 4d72a662f7e8a0015ddd577c084db6334f4c5965 (patch) | |
tree | 5dbcb0898b7579d828f6f6a80c3a11a3af1450e5 /sys | |
parent | bb0064c3c5e270a73f6165ab6cbc48cbff1d5997 (diff) | |
download | FreeBSD-src-4d72a662f7e8a0015ddd577c084db6334f4c5965.zip FreeBSD-src-4d72a662f7e8a0015ddd577c084db6334f4c5965.tar.gz |
Move extern tsc_present outside function to quelch a warning.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/include/cpu.h | 5 | ||||
-rw-r--r-- | sys/i386/include/cpu.h | 5 |
2 files changed, 8 insertions, 2 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) { diff --git a/sys/i386/include/cpu.h b/sys/i386/include/cpu.h index d7e2160..4c6cb43 100644 --- a/sys/i386/include/cpu.h +++ b/sys/i386/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) { |