Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261626AbVCEPq5 (ORCPT ); Sat, 5 Mar 2005 10:46:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261990AbVCEPht (ORCPT ); Sat, 5 Mar 2005 10:37:49 -0500 Received: from coderock.org ([193.77.147.115]:42147 "EHLO trashy.coderock.org") by vger.kernel.org with ESMTP id S262008AbVCEPfl (ORCPT ); Sat, 5 Mar 2005 10:35:41 -0500 Subject: [patch 06/12] i386/traps: replace schedule_timeout() with ssleep() To: akpm@osdl.org Cc: linux-kernel@vger.kernel.org, domen@coderock.org, nacc@us.ibm.com From: domen@coderock.org Date: Sat, 05 Mar 2005 16:35:25 +0100 Message-Id: <20050305153525.032C51EE1E@trashy.coderock.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1117 Lines: 34 Please consider applying. Use ssleep() instead of schedule_timeout() to guarantee the task delays as expected. Signed-off-by: Nishanth Aravamudan Signed-off-by: Domen Puncer --- kj-domen/arch/i386/kernel/traps.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) diff -puN arch/i386/kernel/traps.c~ssleep-arch_i386_kernel_traps arch/i386/kernel/traps.c --- kj/arch/i386/kernel/traps.c~ssleep-arch_i386_kernel_traps 2005-03-05 16:11:14.000000000 +0100 +++ kj-domen/arch/i386/kernel/traps.c 2005-03-05 16:11:14.000000000 +0100 @@ -345,8 +345,7 @@ void die(const char * str, struct pt_reg if (panic_on_oops) { printk(KERN_EMERG "Fatal exception: panic in 5 seconds\n"); - set_current_state(TASK_UNINTERRUPTIBLE); - schedule_timeout(5 * HZ); + ssleep(5); panic("Fatal exception"); } do_exit(SIGSEGV); _ - 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/