Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753023AbcKBJjn (ORCPT ); Wed, 2 Nov 2016 05:39:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36014 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751688AbcKBJjm (ORCPT ); Wed, 2 Nov 2016 05:39:42 -0400 Date: Wed, 2 Nov 2016 10:38:20 +0100 From: Stanislaw Gruszka To: Christian Borntraeger Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Frederic Weisbecker , Paul Mackerras , Benjamin Herrenschmidt , Michael Neuling , linuxppc-dev@lists.ozlabs.org, Martin Schwidefsky , Heiko Carstens , linux-s390@vger.kernel.org Subject: Re: [PATCH 3/4] cputime/powerpc/s390: make scaled cputime arch specific Message-ID: <20161102093820.GC2604@redhat.com> References: <1477917389-11341-1-git-send-email-sgruszka@redhat.com> <1477917389-11341-4-git-send-email-sgruszka@redhat.com> <9ad862f2-5665-08d6-4e5d-793637efcb66@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9ad862f2-5665-08d6-4e5d-793637efcb66@de.ibm.com> User-Agent: Mutt/1.5.20 (2009-12-10) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 02 Nov 2016 09:39:40 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1026 Lines: 22 On Wed, Nov 02, 2016 at 10:11:22AM +0100, Christian Borntraeger wrote: > On 10/31/2016 01:36 PM, Stanislaw Gruszka wrote: > > Only s390 and powerpc have hardware facilities allowing to measure > > cputimes scaled by frequency. On all other architectures > > utimescaled/stimescaled are equal to utime/stime (however they are > > accounted separately). > > > > Patch remove {u,s}timescaled accounting on all architectures except > > powerpc and s390, where those values are explicitly accounted on proper > > places. > > If we remove it everywhere else (and assuming that there are no users then) > I aks myself if we should remove this as well from s390. There is one user of scaled cputimes values, it is taskstats (to users space are exported ac_utimescaled, ac_stimescaled and cpu_scaled_run_real_total which is calculated based on scaled times). However on other than powerpc and s390 architectures scaled times are equal to normal times (this is also true for older powerpc's without SPURR/PURR registers). Stanislaw