Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 4 Apr 2002 18:43:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 4 Apr 2002 18:43:32 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:16145 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Thu, 4 Apr 2002 18:43:25 -0500 Date: Thu, 4 Apr 2002 15:42:42 -0800 (PST) From: Linus Torvalds To: Robert Love cc: Andrew Morton , Roger Larsson , Dave Hansen , "Adam J. Richter" , Subject: Re: Patch: linux-2.5.8-pre1/kernel/exit.c change caused BUG() at boot time In-Reply-To: <1017961694.23629.649.camel@phantasy> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On 4 Apr 2002, Robert Love wrote: > > Curiously, what is wrong with the way we did it in the original patch? > I.e. set a bit in preempt_count and use that to skip to pick_next_task > in schedule. This allows us to preempt any task of any state ... Because that requires that every user of "set_task_state()" needs to know about preemption. Btw, I think entry.S should just call preempt_schedule() instead, instead of knowing about these details. Linus - 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/