From 09116ce3bc2331161ddb61b1ad152fe615184f04 Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Thu, 15 Dec 2005 12:25:11 +0000 Subject: [PATCH] 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 --- src/system/kernel/arch/x86/arch_cpu.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/system/kernel/arch/x86/arch_cpu.c b/src/system/kernel/arch/x86/arch_cpu.c index 99a3f0eb04..5436c50e0f 100644 --- a/src/system/kernel/arch/x86/arch_cpu.c +++ b/src/system/kernel/arch/x86/arch_cpu.c @@ -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"); }