From e0518baa0c961fdee315d1a00d2c692a4d0b8e1c Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 21 Apr 2009 12:30:54 +0000 Subject: [PATCH] Fixed incorrect loop condition. Thanks Francois for reviewing! (and sorry for mistreating your name -- Haiku's svn is to blame :-)). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30293 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/x86/arch_cpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/arch/x86/arch_cpu.cpp b/src/system/kernel/arch/x86/arch_cpu.cpp index 82a682b6cb..a3ea1de7db 100644 --- a/src/system/kernel/arch/x86/arch_cpu.cpp +++ b/src/system/kernel/arch/x86/arch_cpu.cpp @@ -512,7 +512,7 @@ arch_cpu_preboot_init_percpu(kernel_args *args, int cpu) // One CPU after the other will drop out of this loop and be caught by // the loop below, until the last CPU (0) gets there. Save for +/- a few // cycles the CPUs should pass the second loop at the same time. - while (sTSCSyncRendezvous > cpu) { + while (sTSCSyncRendezvous != cpu) { } sTSCSyncRendezvous = cpu - 1;