Don't remove i586_ctr_freq from scope, leave it defined as zero. This

simplifies some assumptions and stops some code compile problems.

This should fix the compile hiccup in PR#3491, but smp kernel profiling
isn't likely to be fixed by this.
This commit is contained in:
Peter Wemm 1997-05-04 14:25:00 +00:00
parent 506935935c
commit 26e5316524
7 changed files with 35 additions and 21 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91 * from: @(#)clock.c 7.2 (Berkeley) 5/12/91
* $Id: clock.c,v 1.80 1997/04/06 13:25:48 mckay Exp $ * $Id: clock.c,v 1.81 1997/04/26 11:45:51 peter Exp $
*/ */
/* /*
@ -101,12 +101,14 @@
int adjkerntz; /* local offset from GMT in seconds */ int adjkerntz; /* local offset from GMT in seconds */
int disable_rtc_set; /* disable resettodr() if != 0 */ int disable_rtc_set; /* disable resettodr() if != 0 */
u_int idelayed; u_int idelayed;
#if (defined(I586_CPU) || defined(I686_CPU)) && !defined(SMP) #if defined(I586_CPU) || defined(I686_CPU)
#if !defined(SMP)
u_int i586_ctr_bias; u_int i586_ctr_bias;
u_int i586_ctr_comultiplier; u_int i586_ctr_comultiplier;
u_int i586_ctr_freq;
u_int i586_ctr_multiplier; u_int i586_ctr_multiplier;
#endif #endif
u_int i586_ctr_freq;
#endif
int statclock_disable; int statclock_disable;
u_int stat_imask = SWI_CLOCK_MASK; u_int stat_imask = SWI_CLOCK_MASK;
#ifdef TIMER_FREQ #ifdef TIMER_FREQ

View File

@ -3,7 +3,7 @@
* Garrett Wollman, September 1994. * Garrett Wollman, September 1994.
* This file is in the public domain. * This file is in the public domain.
* *
* $Id: clock.h,v 1.24 1997/02/22 09:33:59 peter Exp $ * $Id: clock.h,v 1.25 1997/04/26 11:45:33 peter Exp $
*/ */
#ifndef _MACHINE_CLOCK_H_ #ifndef _MACHINE_CLOCK_H_
@ -28,12 +28,14 @@
*/ */
extern int adjkerntz; extern int adjkerntz;
extern int disable_rtc_set; extern int disable_rtc_set;
#if (defined(I586_CPU) || defined(I686_CPU)) && !defined(SMP) #if defined(I586_CPU) || defined(I686_CPU)
#if !defined(SMP)
extern u_int i586_ctr_bias; extern u_int i586_ctr_bias;
extern u_int i586_ctr_comultiplier; extern u_int i586_ctr_comultiplier;
extern u_int i586_ctr_freq;
extern u_int i586_ctr_multiplier; extern u_int i586_ctr_multiplier;
#endif #endif
extern u_int i586_ctr_freq;
#endif
extern int statclock_disable; extern int statclock_disable;
extern u_int timer_freq; extern u_int timer_freq;
extern int timer0_max_count; extern int timer0_max_count;

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91 * from: @(#)clock.c 7.2 (Berkeley) 5/12/91
* $Id: clock.c,v 1.80 1997/04/06 13:25:48 mckay Exp $ * $Id: clock.c,v 1.81 1997/04/26 11:45:51 peter Exp $
*/ */
/* /*
@ -101,12 +101,14 @@
int adjkerntz; /* local offset from GMT in seconds */ int adjkerntz; /* local offset from GMT in seconds */
int disable_rtc_set; /* disable resettodr() if != 0 */ int disable_rtc_set; /* disable resettodr() if != 0 */
u_int idelayed; u_int idelayed;
#if (defined(I586_CPU) || defined(I686_CPU)) && !defined(SMP) #if defined(I586_CPU) || defined(I686_CPU)
#if !defined(SMP)
u_int i586_ctr_bias; u_int i586_ctr_bias;
u_int i586_ctr_comultiplier; u_int i586_ctr_comultiplier;
u_int i586_ctr_freq;
u_int i586_ctr_multiplier; u_int i586_ctr_multiplier;
#endif #endif
u_int i586_ctr_freq;
#endif
int statclock_disable; int statclock_disable;
u_int stat_imask = SWI_CLOCK_MASK; u_int stat_imask = SWI_CLOCK_MASK;
#ifdef TIMER_FREQ #ifdef TIMER_FREQ

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91 * from: @(#)clock.c 7.2 (Berkeley) 5/12/91
* $Id: clock.c,v 1.80 1997/04/06 13:25:48 mckay Exp $ * $Id: clock.c,v 1.81 1997/04/26 11:45:51 peter Exp $
*/ */
/* /*
@ -101,12 +101,14 @@
int adjkerntz; /* local offset from GMT in seconds */ int adjkerntz; /* local offset from GMT in seconds */
int disable_rtc_set; /* disable resettodr() if != 0 */ int disable_rtc_set; /* disable resettodr() if != 0 */
u_int idelayed; u_int idelayed;
#if (defined(I586_CPU) || defined(I686_CPU)) && !defined(SMP) #if defined(I586_CPU) || defined(I686_CPU)
#if !defined(SMP)
u_int i586_ctr_bias; u_int i586_ctr_bias;
u_int i586_ctr_comultiplier; u_int i586_ctr_comultiplier;
u_int i586_ctr_freq;
u_int i586_ctr_multiplier; u_int i586_ctr_multiplier;
#endif #endif
u_int i586_ctr_freq;
#endif
int statclock_disable; int statclock_disable;
u_int stat_imask = SWI_CLOCK_MASK; u_int stat_imask = SWI_CLOCK_MASK;
#ifdef TIMER_FREQ #ifdef TIMER_FREQ

View File

@ -3,7 +3,7 @@
* Garrett Wollman, September 1994. * Garrett Wollman, September 1994.
* This file is in the public domain. * This file is in the public domain.
* *
* $Id: clock.h,v 1.24 1997/02/22 09:33:59 peter Exp $ * $Id: clock.h,v 1.25 1997/04/26 11:45:33 peter Exp $
*/ */
#ifndef _MACHINE_CLOCK_H_ #ifndef _MACHINE_CLOCK_H_
@ -28,12 +28,14 @@
*/ */
extern int adjkerntz; extern int adjkerntz;
extern int disable_rtc_set; extern int disable_rtc_set;
#if (defined(I586_CPU) || defined(I686_CPU)) && !defined(SMP) #if defined(I586_CPU) || defined(I686_CPU)
#if !defined(SMP)
extern u_int i586_ctr_bias; extern u_int i586_ctr_bias;
extern u_int i586_ctr_comultiplier; extern u_int i586_ctr_comultiplier;
extern u_int i586_ctr_freq;
extern u_int i586_ctr_multiplier; extern u_int i586_ctr_multiplier;
#endif #endif
extern u_int i586_ctr_freq;
#endif
extern int statclock_disable; extern int statclock_disable;
extern u_int timer_freq; extern u_int timer_freq;
extern int timer0_max_count; extern int timer0_max_count;

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91 * from: @(#)clock.c 7.2 (Berkeley) 5/12/91
* $Id: clock.c,v 1.80 1997/04/06 13:25:48 mckay Exp $ * $Id: clock.c,v 1.81 1997/04/26 11:45:51 peter Exp $
*/ */
/* /*
@ -101,12 +101,14 @@
int adjkerntz; /* local offset from GMT in seconds */ int adjkerntz; /* local offset from GMT in seconds */
int disable_rtc_set; /* disable resettodr() if != 0 */ int disable_rtc_set; /* disable resettodr() if != 0 */
u_int idelayed; u_int idelayed;
#if (defined(I586_CPU) || defined(I686_CPU)) && !defined(SMP) #if defined(I586_CPU) || defined(I686_CPU)
#if !defined(SMP)
u_int i586_ctr_bias; u_int i586_ctr_bias;
u_int i586_ctr_comultiplier; u_int i586_ctr_comultiplier;
u_int i586_ctr_freq;
u_int i586_ctr_multiplier; u_int i586_ctr_multiplier;
#endif #endif
u_int i586_ctr_freq;
#endif
int statclock_disable; int statclock_disable;
u_int stat_imask = SWI_CLOCK_MASK; u_int stat_imask = SWI_CLOCK_MASK;
#ifdef TIMER_FREQ #ifdef TIMER_FREQ

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* from: @(#)clock.c 7.2 (Berkeley) 5/12/91 * from: @(#)clock.c 7.2 (Berkeley) 5/12/91
* $Id: clock.c,v 1.80 1997/04/06 13:25:48 mckay Exp $ * $Id: clock.c,v 1.81 1997/04/26 11:45:51 peter Exp $
*/ */
/* /*
@ -101,12 +101,14 @@
int adjkerntz; /* local offset from GMT in seconds */ int adjkerntz; /* local offset from GMT in seconds */
int disable_rtc_set; /* disable resettodr() if != 0 */ int disable_rtc_set; /* disable resettodr() if != 0 */
u_int idelayed; u_int idelayed;
#if (defined(I586_CPU) || defined(I686_CPU)) && !defined(SMP) #if defined(I586_CPU) || defined(I686_CPU)
#if !defined(SMP)
u_int i586_ctr_bias; u_int i586_ctr_bias;
u_int i586_ctr_comultiplier; u_int i586_ctr_comultiplier;
u_int i586_ctr_freq;
u_int i586_ctr_multiplier; u_int i586_ctr_multiplier;
#endif #endif
u_int i586_ctr_freq;
#endif
int statclock_disable; int statclock_disable;
u_int stat_imask = SWI_CLOCK_MASK; u_int stat_imask = SWI_CLOCK_MASK;
#ifdef TIMER_FREQ #ifdef TIMER_FREQ