Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941727AbcJaMhz (ORCPT ); Mon, 31 Oct 2016 08:37:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53688 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938785AbcJaMhx (ORCPT ); Mon, 31 Oct 2016 08:37:53 -0400 From: Stanislaw Gruszka To: linux-kernel@vger.kernel.org Cc: 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, Stanislaw Gruszka Subject: [PATCH 0/4] cputime: some optimizations and cleanups Date: Mon, 31 Oct 2016 13:36:25 +0100 Message-Id: <1477917389-11341-1-git-send-email-sgruszka@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Mon, 31 Oct 2016 12:37:53 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1683 Lines: 35 Patches remove accounting of utimescaled/stimescaled on architectures that do not provide those values (scaled cputimes are equal to normal cputimes) what is every architecture except powerpc and s390. Patches do not change user visible behaviour. There is very little documentation how scaled cputimes should be interpreted and what useful information they provide (at least I could not find that). Moreover they are exported to user-space only via not commonly used taskstats and delayacct interfaces (i.e. interfaces that are not used by standard linux tools AFICT). However I assume they can not be removed by whole (i.e. replaced by normal utimes/stimes on powerpc and s390). Stanislaw Gruszka (4): cputime/powerpc: remove cputime_last_delta global variable cputime/powerpc: remove cputime_to_scaled() cputime/powerpc/s390: make scaled cputime arch specific cputime: simplify task_cputime() arch/ia64/kernel/time.c | 4 +- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/cputime.h | 14 ---- arch/powerpc/kernel/time.c | 8 +- arch/s390/Kconfig | 1 + arch/s390/kernel/vtime.c | 9 ++- arch/x86/kernel/apm_32.c | 4 +- include/asm-generic/cputime_jiffies.h | 1 - include/asm-generic/cputime_nsecs.h | 1 - include/linux/kernel_stat.h | 4 +- include/linux/sched.h | 29 +++++--- kernel/fork.c | 2 + kernel/sched/cputime.c | 124 +++++++++------------------------ kernel/time/posix-cpu-timers.c | 4 +- 14 files changed, 73 insertions(+), 133 deletions(-)