From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.redhat.com (mx2.redhat.com [66.187.237.31]) by ozlabs.org (Postfix) with ESMTP id B2F58DE100 for ; Mon, 25 May 2009 22:58:27 +1000 (EST) Date: Mon, 25 May 2009 14:51:32 +0200 From: Stanislaw Gruszka To: Thomas Gleixner Subject: Re: [PATCH resend4 2/3] itimers: fix periodic tics precision Message-ID: <20090525145132.03915e19@dhcp-lab-109.englab.brq.redhat.com> In-Reply-To: References: <20090522154339.06d30f0a@dhcp-lab-109.englab.brq.redhat.com> <20090525132814.442877e5@dhcp-lab-109.englab.brq.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: Ingo, Peter Zijlstra , linuxppc-dev@ozlabs.org, "linux-kernel@vger.kernel.org" , Nesterov , Oleg, Molnar , Andrew Morton List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 25 May 2009 14:32:14 +0200 (CEST) Thomas Gleixner wrote: > On Mon, 25 May 2009, Stanislaw Gruszka wrote: > > @@ -904,6 +905,7 @@ void __init time_init(void) > > tb_ticks_per_usec = ppc_tb_freq / 1000000; > > tb_to_us = mulhwu_scale_factor(ppc_tb_freq, 1000000); > > calc_cputime_factors(); > > + cputime_one = jiffies_to_cputime(1); > > 1) The variable name is misleading. What about cputime_one_jiffy ? > 2) The patch breaks all powerpc platforms which have > CONFIG_VIRT_CPU_ACCOUNTING=n and ia64 with > CONFIG_VIRT_CPU_ACCOUNTING=y Stupid me, in asm-generic/cputime.h should be #define cputime_one jiffies_to_cputime(1) Thanks Stanislaw