Start tick at the correct time (cpu_init_clocks), instead of cpu_startup.

This commit is contained in:
Jake Burkholder 2002-10-22 07:10:15 +00:00
parent 26c138c5e2
commit 069604aa96
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105678
2 changed files with 11 additions and 5 deletions

View File

@ -34,11 +34,6 @@ u_long tick_increment;
u_long tick_freq;
u_long tick_MHz;
void
cpu_initclocks(void)
{
}
void
DELAY(int n)
{

View File

@ -40,6 +40,8 @@
#include <sys/proc.h>
#endif
#include <dev/ofw/openfirm.h>
#include <machine/clock.h>
#include <machine/frame.h>
#include <machine/intr_machdep.h>
@ -52,6 +54,15 @@ int tick_missed; /* statistics */
#define TICK_GRACE 1000
void
cpu_initclocks(void)
{
u_int clock;
OF_getprop(PCPU_GET(node), "clock-frequency", &clock, sizeof(clock));
tick_start(clock, tick_hardclock);
}
static __inline void
tick_process(struct clockframe *cf)
{