Return-Path: Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.174]) by ozlabs.org (Postfix) with ESMTP id ACCBCDDE2D for ; Tue, 15 May 2007 00:40:16 +1000 (EST) From: Arnd Bergmann To: linuxppc-dev@ozlabs.org Subject: Re: [patch 4/4] powerpc 2.6.21-rt1: reduce scheduling latency by changing tlb flush size Date: Mon, 14 May 2007 16:40:02 +0200 References: <1179125506.22481.297.camel@localhost.localdomain> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-Id: <200705141640.02561.arnd@arndb.de> Cc: Thomas Gleixner , mingo@elte.hu, linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Monday 14 May 2007, Tsutomu OWA wrote: > --- linux-2.6.21-rt1/include/asm-powerpc/tlbflush.h=A0=A0=A0=A0=A02007-04= =2D26 12:08:32.000000000 +0900 > +++ rt/include/asm-powerpc/tlbflush.h=A0=A0=A02007-05-14 16:12:47.0000000= 00 +0900 > @@ -25,7 +25,12 @@ struct mm_struct; > =A0#include > =A0#include > =A0 > +#if defined(CONFIG_PPC_CELLEB) && defined(CONFIG_PREEMPT_RT) > +/* Since tlb flush takes long time on Celleb, reduce it to 1 when Celleb= && RT */ > +#define PPC64_TLB_BATCH_NR 1 > +#else > =A0#define PPC64_TLB_BATCH_NR 192 > +#endif /* defined(CONFIG_PPC_CELLEB) && defined(CONFIG_PREEMPT_RT) */ With this code, you get silent side-effects of enabling PPC_CELLEB along with another platform. Maybe instead you should change the hpte_need_flush() to always flush when running on the celleb platform and PREEMPT_RT is enabled. Arnd <><