[PATCH 13/21] ia64/smpboot: replace schedule_timeout() with msleep()

From: Nishanth Aravamudan <nacc_at_us.ibm.com>
Date: 2005-01-18 10:03:36
Hi,

Please consider applying. 

Description: Use msleep() instead of schedule_timeout() to guarantee the task
delays as expected.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>


--- 2.6.11-rc1-kj-v/arch/ia64/kernel/smpboot.c	2005-01-15 16:55:41.000000000 -0800
+++ 2.6.11-rc1-kj/arch/ia64/kernel/smpboot.c	2005-01-15 17:12:46.000000000 -0800
@@ -612,8 +612,7 @@ void __cpu_die(unsigned int cpu)
 			 */
 			return;
 		}
-		current->state = TASK_UNINTERRUPTIBLE;
-		schedule_timeout(HZ/10);
+		msleep(100);
 	}
  	printk(KERN_ERR "CPU %u didn't die...\n", cpu);
 }
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon Jan 17 18:14:43 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:34 EST