Messages in this thread Patch in this message | | | Date | Sat, 22 Jan 2005 16:35:55 +1100 | From | Paul Mackerras <> | Subject | [PATCH] PPC64 replace schedule_timeout in __cpu_up |
| |
This patch is from Nishanth Aravamudan <nacc@us.ibm.com>.
Replace schedule_timeout() with msleep to simplify the code and to express the delay in milliseconds instead of HZ.
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
--- 2.6.11-rc1-kj-v/arch/ppc64/kernel/smp.c 2005-01-15 16:55:41.000000000 -0800 +++ 2.6.11-rc1-kj/arch/ppc64/kernel/smp.c 2005-01-15 17:30:16.000000000 -0800 @@ -459,8 +459,7 @@ int __devinit __cpu_up(unsigned int cpu) * hotplug case. Wait five seconds. */ for (c = 25; c && !cpu_callin_map[cpu]; c--) { - set_current_state(TASK_UNINTERRUPTIBLE); - schedule_timeout(HZ/5); + msleep(200); } #endif - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |