From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754210Ab1LVAOn (ORCPT ); Wed, 21 Dec 2011 19:14:43 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:43887 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752121Ab1LVAOl (ORCPT ); Wed, 21 Dec 2011 19:14:41 -0500 X-Auth-Info: zGRQzWs6rZqqL2y0se8Te08afHsSHYQxEOcceI2GuR8= From: Andreas Schwab To: Andrew Morton 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 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> <20111221155624.1555d8a4.akpm@linux-foundation.org> X-Yow: Okay, BARBRA STREISAND, I recognize you now!! Also EFREM ZIMBALIST, JUNIOR!! And BEAUMONT NEWHALL!! Everybody into th' BATHROOM! Date: Thu, 22 Dec 2011 01:14:39 +0100 In-Reply-To: <20111221155624.1555d8a4.akpm@linux-foundation.org> (Andrew Morton's message of "Wed, 21 Dec 2011 15:56:24 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andrew Morton writes: > 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? get_idle_time returns the value in the wrong unit. > b) which kernel version(s) are affected? get_idle_time got broken in 2a95ea6c0d129b4568fb64e1deda16ceb20e6636. $ git tag --contains a25cac5198d4ff2842ccca63b423962848ad24b2 v3.2-rc1 v3.2-rc2 v3.2-rc3 v3.2-rc4 v3.2-rc5 v3.2-rc6 Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."