From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754358Ab1LUX42 (ORCPT ); Wed, 21 Dec 2011 18:56:28 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:33118 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751387Ab1LUX40 (ORCPT ); Wed, 21 Dec 2011 18:56:26 -0500 Date: Wed, 21 Dec 2011 15:56:24 -0800 From: Andrew Morton To: Andreas Schwab Cc: Michal Hocko , Arnd Bergmann , linux-kernel@vger.kernel.org, "Artem S. Tashkinov" , Dave Jones , Alexey Dobriyan , Thomas Gleixner , Martin Schwidefsky Subject: Re: [resend PATCH for 3.2] procfs: do not confuse jiffies with cputime64_t Message-Id: <20111221155624.1555d8a4.akpm@linux-foundation.org> In-Reply-To: References: <201112120922.13633.arnd@arndb.de> <20111212124333.GC14720@tiehlicka.suse.cz> <20111212131218.GD14720@tiehlicka.suse.cz> <20111221100334.GD27137@tiehlicka.suse.cz> <20111221115919.6beac46f.akpm@linux-foundation.org> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 22 Dec 2011 00:50:06 +0100 Andreas Schwab wrote: > Andrew Morton writes: > > > From: Andreas Schwab > > Subject: procfs: do not confuse jiffies with cputime64_t > > > > get_{idle,iowait}_time are supposed to return cputime64_t values, not > > jiffies. Add usecs_to_cputime64 for this. > > For most architectures (which use the asm-generic/cputime.h) jiffies use > the same unit as cputime64_t values, but ia64, powerpc and s390 make > them different. > OK, but a) what effect does this problem have upon users of the kernel? b) which kernel version(s) are affected?