Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753358AbcKCBCg (ORCPT ); Wed, 2 Nov 2016 21:02:36 -0400 Received: from ozlabs.org ([103.22.144.67]:52195 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751991AbcKCBCe (ORCPT ); Wed, 2 Nov 2016 21:02:34 -0400 Date: Thu, 3 Nov 2016 11:50:38 +1100 From: Paul Mackerras To: Stanislaw Gruszka Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Frederic Weisbecker , Benjamin Herrenschmidt , Michael Neuling , linuxppc-dev@lists.ozlabs.org, Martin Schwidefsky , Heiko Carstens , linux-s390@vger.kernel.org Subject: Re: [PATCH 1/4] cputime/powerpc: remove cputime_last_delta global variable Message-ID: <20161103005038.GB4764@fergus.ozlabs.ibm.com> References: <1477917389-11341-1-git-send-email-sgruszka@redhat.com> <1477917389-11341-2-git-send-email-sgruszka@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1477917389-11341-2-git-send-email-sgruszka@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 556 Lines: 15 On Mon, Oct 31, 2016 at 01:36:26PM +0100, Stanislaw Gruszka wrote: > Since commit: > > cf9efce0ce313 ("powerpc: Account time using timebase rather than PURR") > > cputime_last_delta is not initialized to other value than 0, hence it's > not used except zero check and cputime_to_scaled() just returns > the argument. > > Signed-off-by: Stanislaw Gruszka Yes, I should have removed them in that commit. We don't want to do any scaling in the places where cputime_to_scaled() is used. Acked-by: Paul Mackerras