Export the ns_per_tick variable through md_var.h rather than by declaring
it extern in cpu.c.
This commit is contained in:
parent
bdfe5c9146
commit
d8e3618615
@ -84,8 +84,8 @@ static const char rcsid[] =
|
|||||||
* Initially we assume a processor with a bus frequency of 12.5 MHz.
|
* Initially we assume a processor with a bus frequency of 12.5 MHz.
|
||||||
*/
|
*/
|
||||||
u_int tickspending;
|
u_int tickspending;
|
||||||
|
u_long ns_per_tick = 80;
|
||||||
static u_long ticks_per_sec = 12500000;
|
static u_long ticks_per_sec = 12500000;
|
||||||
static u_long ns_per_tick = 80;
|
|
||||||
static long ticks_per_intr;
|
static long ticks_per_intr;
|
||||||
static volatile u_long lasttb;
|
static volatile u_long lasttb;
|
||||||
|
|
||||||
|
@ -42,6 +42,8 @@ extern int busdma_swi_pending;
|
|||||||
extern vm_offset_t kstack0;
|
extern vm_offset_t kstack0;
|
||||||
extern vm_offset_t kstack0_phys;
|
extern vm_offset_t kstack0_phys;
|
||||||
|
|
||||||
|
extern u_long ns_per_tick;
|
||||||
|
|
||||||
struct fpreg;
|
struct fpreg;
|
||||||
struct proc;
|
struct proc;
|
||||||
struct reg;
|
struct reg;
|
||||||
|
@ -84,8 +84,8 @@ static const char rcsid[] =
|
|||||||
* Initially we assume a processor with a bus frequency of 12.5 MHz.
|
* Initially we assume a processor with a bus frequency of 12.5 MHz.
|
||||||
*/
|
*/
|
||||||
u_int tickspending;
|
u_int tickspending;
|
||||||
|
u_long ns_per_tick = 80;
|
||||||
static u_long ticks_per_sec = 12500000;
|
static u_long ticks_per_sec = 12500000;
|
||||||
static u_long ns_per_tick = 80;
|
|
||||||
static long ticks_per_intr;
|
static long ticks_per_intr;
|
||||||
static volatile u_long lasttb;
|
static volatile u_long lasttb;
|
||||||
|
|
||||||
|
@ -69,8 +69,6 @@
|
|||||||
#include <machine/md_var.h>
|
#include <machine/md_var.h>
|
||||||
#include <machine/spr.h>
|
#include <machine/spr.h>
|
||||||
|
|
||||||
extern u_long ns_per_tick;
|
|
||||||
|
|
||||||
struct cputab {
|
struct cputab {
|
||||||
const char *name;
|
const char *name;
|
||||||
uint16_t version;
|
uint16_t version;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user