removed the switch statement for determining number of CPU's in a system. This should fix CPU 'hlt' instruction not being executed in SMP systems idle loop. Thanks Axel and Ingo for pointing me at this.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15544 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -469,14 +469,7 @@ arch_cpu_shutdown(bool _reboot)
|
|||||||
void
|
void
|
||||||
arch_cpu_idle(void)
|
arch_cpu_idle(void)
|
||||||
{
|
{
|
||||||
switch (smp_get_num_cpus()) {
|
asm("hlt");
|
||||||
case 0:
|
|
||||||
panic("You need at least 1 CPU to run Haiku\n");
|
|
||||||
case 1:
|
|
||||||
asm("hlt");
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user