Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 15 Oct 2002 10:59:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 15 Oct 2002 10:59:03 -0400 Received: from mx2.elte.hu ([157.181.151.9]:32487 "HELO mx2.elte.hu") by vger.kernel.org with SMTP id ; Tue, 15 Oct 2002 10:59:02 -0400 Date: Tue, 15 Oct 2002 17:15:25 +0200 (CEST) From: Ingo Molnar Reply-To: Ingo Molnar To: Duncan Sands Cc: linux-kernel@vger.kernel.org, Andrew Morton Subject: Re: Use of yield() in the kernel In-Reply-To: <200210151536.39029.baldrick@wanadoo.fr> 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 Content-Length: 845 Lines: 37 On Tue, 15 Oct 2002, Duncan Sands wrote: > Maybe it is worth auditing the kernel source files using yield()? most definitely. > Here is the list of files using yield(), excluding non-i386 arch > specific files: > [...] > mm/oom_kill.c this one i think is OK. > kernel/sched.c (in migration_call) this is okay as well. > kernel/softirq.c these are okay too - both are nonperformance bits. > arch/i386/mm/fault.c okay as well, it's a last-ditch effort to not kill init, so yielding is the right thing to do here. the others i think should be fixed. (but there might be exceptions.) Ingo - 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/