From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp2.linux-foundation.org (smtp2.linux-foundation.org [207.189.120.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "smtp.linux-foundation.org", Issuer "CA Cert Signing Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTP id 52069DDEC9 for ; Thu, 25 Oct 2007 09:33:28 +1000 (EST) Date: Wed, 24 Oct 2007 16:33:05 -0700 From: Andrew Morton To: Michael Neuling Subject: Re: [PATCH] taskstats scaled time cleanup Message-Id: <20071024163305.14b9bfba.akpm@linux-foundation.org> In-Reply-To: <8789.1193208897@neuling.org> References: <8789.1193208897@neuling.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, paulus@samba.org, linux390@de.ibm.com, balbir@linux.vnet.ibm.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 24 Oct 2007 16:54:57 +1000 Michael Neuling wrote: > +/* Estimate the scaled cputime by scaling the real cputime based on > + * the last scaled to real ratio */ > +static inline cputime_t cputime_to_scaled(const cputime_t ct) > +{ > + if (cpu_has_feature(CPU_FTR_SPURR) && > + per_cpu(cputime_last_delta, smp_processor_id())) > + return ct * > + per_cpu(cputime_scaled_last_delta, smp_processor_id())/ > + per_cpu(cputime_last_delta, smp_processor_id()); > + return ct; > +} This looks far too large to be inlined.