From 4d72a662f7e8a0015ddd577c084db6334f4c5965 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 7 Dec 2000 22:30:11 +0000 Subject: Move extern tsc_present outside function to quelch a warning. --- sys/amd64/include/cpu.h | 5 ++++- sys/i386/include/cpu.h | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'sys') 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) { -- cgit v1.1