Activated CPU speed conversion factor calculation again.
Added a spin() function. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8046 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
baf3145769
commit
2ac69a4d66
@ -218,20 +218,33 @@ check_cpu_features()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
// #pragma mark -
|
||||||
|
|
||||||
|
|
||||||
|
extern "C" void
|
||||||
|
spin(bigtime_t microseconds)
|
||||||
|
{
|
||||||
|
bigtime_t time = system_time();
|
||||||
|
|
||||||
|
while((system_time() - time) < microseconds)
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
extern "C" void
|
||||||
cpu_boot_other_cpus()
|
cpu_boot_other_cpus()
|
||||||
{
|
{
|
||||||
smp_boot();
|
smp_boot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
extern "C" void
|
||||||
cpu_init()
|
cpu_init()
|
||||||
{
|
{
|
||||||
if (check_cpu_features() != B_OK)
|
if (check_cpu_features() != B_OK)
|
||||||
panic("You need a Pentium or higher in order to boot!\n");
|
panic("You need a Pentium or higher in order to boot!\n");
|
||||||
|
|
||||||
//gKernelArgs.arch_args.system_time_cv_factor = calculate_cpu_conversion_factor();
|
gKernelArgs.arch_args.system_time_cv_factor = calculate_cpu_conversion_factor();
|
||||||
gKernelArgs.num_cpus = 1;
|
gKernelArgs.num_cpus = 1;
|
||||||
// this will eventually be corrected later on
|
// this will eventually be corrected later on
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user