Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754916AbcKUQWZ (ORCPT ); Mon, 21 Nov 2016 11:22:25 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:36283 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752505AbcKUQWX (ORCPT ); Mon, 21 Nov 2016 11:22:23 -0500 Date: Mon, 21 Nov 2016 17:22:20 +0100 From: Frederic Weisbecker To: Ingo Molnar Cc: Martin Schwidefsky , LKML , Tony Luck , Wanpeng Li , Peter Zijlstra , Michael Ellerman , Heiko Carstens , Benjamin Herrenschmidt , Thomas Gleixner , Paul Mackerras , Fenghua Yu , Rik van Riel , Stanislaw Gruszka Subject: Re: [PATCH 00/36] cputime: Convert core use of cputime_t to nsecs Message-ID: <20161121162219.GC7554@lerouge> References: <1479406123-24785-1-git-send-email-fweisbec@gmail.com> <20161118130846.7da515cc@mschwide> <20161118144700.GA31560@lerouge> <20161121094923.GA22910@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161121094923.GA22910@gmail.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: 1129 Lines: 27 On Mon, Nov 21, 2016 at 10:49:23AM +0100, Ingo Molnar wrote: > > * Frederic Weisbecker wrote: > > > > But I am still not happy about the approach. What is the compelling reason for > > > this change except for the "but it looks ugly"? > > > > The diffstat (600 lines removed). Also the fact that we have all these > > workarounds in the core code just for the special case of 1 arch (s390) and a > > half (powerpc with CONFIG_VIRT_CPU_ACCOUNTING_NATIVE). > > > > I'd much rather have all that complexity moved in a vtime_native.c shared by > > s390 and powerpc that takes care of proper accumulation in cputime_t and flushes > > that on ticks in nsecs rather than having all these cputime_t game all over the > > kernel. > > I agree - we really want to concentrate complexity in such a fashion and generally > standardize on nanosecs, and the diffstat of the patchset is really nice. Yeah, although the diffstat might become less impressive after the accumulator code, but still worth it I think. > The patchset obviously has to build (and work!) on s390/powerpc properly. Of course! Thanks.