Move clock_lock prototype into <machine/clock.h>, where it is more
appropriate. Discussed with: jhb
This commit is contained in:
parent
d3e6e0e6f6
commit
aa1807d5d6
@ -25,6 +25,7 @@ extern int timer0_max_count;
|
||||
extern uint64_t tsc_freq;
|
||||
extern int tsc_is_broken;
|
||||
extern int wall_cmos_clock;
|
||||
extern struct mtx clock_lock;
|
||||
|
||||
/*
|
||||
* Driver to clock driver interface.
|
||||
|
@ -32,13 +32,4 @@
|
||||
#ifndef _MACHINE_MUTEX_H_
|
||||
#define _MACHINE_MUTEX_H_
|
||||
|
||||
#ifndef LOCORE
|
||||
#ifdef _KERNEL
|
||||
|
||||
/* Global locks */
|
||||
extern struct mtx clock_lock;
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !LOCORE */
|
||||
#endif /* __MACHINE_MUTEX_H */
|
||||
|
@ -25,6 +25,7 @@ extern int timer0_max_count;
|
||||
extern uint64_t tsc_freq;
|
||||
extern int tsc_is_broken;
|
||||
extern int wall_cmos_clock;
|
||||
extern struct mtx clock_lock;
|
||||
|
||||
/*
|
||||
* Driver to clock driver interface.
|
||||
|
@ -32,16 +32,7 @@
|
||||
#ifndef _MACHINE_MUTEX_H_
|
||||
#define _MACHINE_MUTEX_H_
|
||||
|
||||
#ifndef LOCORE
|
||||
|
||||
#ifdef _KERNEL
|
||||
|
||||
/* Global locks */
|
||||
extern struct mtx clock_lock;
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#else /* !LOCORE */
|
||||
#ifdef LOCORE
|
||||
|
||||
/*
|
||||
* Simple assembly macros to get and release mutexes.
|
||||
@ -71,5 +62,5 @@ extern struct mtx clock_lock;
|
||||
call _mtx_unlock_spin_flags ; \
|
||||
addl $0x10, %esp ; \
|
||||
|
||||
#endif /* !LOCORE */
|
||||
#endif /* LOCORE */
|
||||
#endif /* __MACHINE_MUTEX_H */
|
||||
|
Loading…
Reference in New Issue
Block a user