Skip to contentSkip to conversation

i386/smpboot: use msleep() instead of schedule_timeout()

PATCH In review [email protected] 1 participant 1 message Jul 14, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 5/5 i386/smpboot: use msleep() instead of schedule_timeout()

From: Nishanth Aravamudan <[email protected]>

From: Nishanth Aravamudan <[email protected]>

Replace schedule_timeout() with msleep() to guarantee the task delays as expected.

Patch is compile-tested.

---
 smpboot.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)
arch/i386/kernel/smpboot.c +1 -2
Index: quilt/arch/i386/kernel/smpboot.c
===================================================================
@@ -1327,8 +1327,7 @@ void __cpu_die(unsigned int cpu)
 			printk ("CPU %d is now offline\n", cpu);
 			return;
 		}
-		current->state = TASK_UNINTERRUPTIBLE;
-		schedule_timeout(HZ/10);
+		msleep(100);
 	}
  	printk(KERN_ERR "CPU %u didn't die...\n", cpu);
 }

--