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:
parent
3fcc89d18b
commit
09116ce3bc
@ -469,14 +469,7 @@ arch_cpu_shutdown(bool _reboot)
|
||||
void
|
||||
arch_cpu_idle(void)
|
||||
{
|
||||
switch (smp_get_num_cpus()) {
|
||||
case 0:
|
||||
panic("You need at least 1 CPU to run Haiku\n");
|
||||
case 1:
|
||||
asm("hlt");
|
||||
default:
|
||||
break;
|
||||
}
|
||||
asm("hlt");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user