From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nishanth Aravamudan Date: Sat, 09 Jul 2005 00:05:58 +0000 Subject: [KJ] [PATCH 4/14] i386/smpboot: use msleep() instead of Message-Id: <20050709000558.GG2596@us.ibm.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============038617334319709151==" List-Id: To: kernel-janitors@vger.kernel.org --===============038617334319709151== Content-Type: text/plain; charset=us-ascii Content-Disposition: inline From: Nishanth Aravamudan Description: Replace schedule_timeout() with msleep() to guarantee the task delays as expected. Patch is compile-tested. Signed-off-by: Nishanth Aravamudan --- smpboot.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) diff -urpN 2.6.13-rc2-kj/arch/i386/kernel/smpboot.c 2.6.13-rc2-kj-dev/arch/i386/kernel/smpboot.c --- 2.6.13-rc2-kj/arch/i386/kernel/smpboot.c 2005-07-06 07:57:17.000000000 -0700 +++ 2.6.13-rc2-kj-dev/arch/i386/kernel/smpboot.c 2005-07-06 13:27:06.000000000 -0700 @@ -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); } --===============038617334319709151== Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline _______________________________________________ Kernel-janitors mailing list Kernel-janitors@lists.osdl.org https://lists.osdl.org/mailman/listinfo/kernel-janitors --===============038617334319709151==--