Move extern tsc_present outside function to quelch a warning.

This commit is contained in:
Poul-Henning Kamp 2000-12-07 22:30:11 +00:00
parent aac61d609c
commit 45b031c5e4
2 changed files with 8 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {