From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264477AbUEXRtU (ORCPT ); Mon, 24 May 2004 13:49:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264444AbUEXRtU (ORCPT ); Mon, 24 May 2004 13:49:20 -0400 Received: from x35.xmailserver.org ([69.30.125.51]:29373 "EHLO x35.xmailserver.org") by vger.kernel.org with ESMTP id S264669AbUEXRqn (ORCPT ); Mon, 24 May 2004 13:46:43 -0400 X-AuthUser: davidel@xmailserver.org Date: Mon, 24 May 2004 10:46:41 -0700 (PDT) From: Davide Libenzi X-X-Sender: davide@bigblue.dev.mdolabs.com To: Ingo Molnar cc: Linux Kernel List , rmk+lkml@arm.linux.org.uk Subject: Re: scheduler: IRQs disabled over context switches In-Reply-To: Message-ID: References: <20040523174359.A21153@flint.arm.linux.org.uk> <20040524083715.GA24967@elte.hu> <20040524090538.GA26183@elte.hu> 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 Mon, 24 May 2004, Davide Libenzi wrote: > On Mon, 24 May 2004, Ingo Molnar wrote: > > > > > * Davide Libenzi wrote: > > > > > We used to do it in 2.4. What changed to make it fragile? The > > > threading (TLS) thing? > > > > it _should_ work, but in the past we only had trouble from such changes > > (at least in the O(1) tree of scheduling - 2.4 scheduler is OK.). We > > could try the patch below. It certainly boots on SMP x86. But it causes > > a 3.5% slowdown in lat_ctx so i'd not do it unless there are some really > > good reasons. > > IMO it is fine, as long as it works with IRQ disabled. There are archs s/disabled/enabled/ - Davide