From patchwork Fri Feb 8 03:14:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Rothwell X-Patchwork-Id: 219032 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 3DB2B2C039F for ; Fri, 8 Feb 2013 14:15:16 +1100 (EST) Received: from members.tip.net.au (haggis.pcug.org.au [203.10.76.10]) by ozlabs.org (Postfix) with ESMTP id AD4DE2C0087 for ; Fri, 8 Feb 2013 14:14:48 +1100 (EST) Received: from canb.auug.org.au (ibmaus65.lnk.telstra.net [165.228.126.9]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by members.tip.net.au (Postfix) with ESMTPSA id BF7BC164065; Fri, 8 Feb 2013 14:14:47 +1100 (EST) Date: Fri, 8 Feb 2013 14:14:47 +1100 From: Stephen Rothwell To: Frederic Weisbecker Subject: Re: [PATCH 4/8] cputime: Generic on-demand virtual cputime accounting Message-Id: <20130208141447.03914013db9a5f7308fc1675@canb.auug.org.au> In-Reply-To: <20130208140749.5a094f271e529dacfb962b51@canb.auug.org.au> References: <1359399845-10568-1-git-send-email-fweisbec@gmail.com> <1359399845-10568-5-git-send-email-fweisbec@gmail.com> <20130208140749.5a094f271e529dacfb962b51@canb.auug.org.au> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.10; i486-pc-linux-gnu) Mime-Version: 1.0 Cc: Namhyung Kim , Li Zhong , Peter Zijlstra , LKML , Steven Rostedt , Paul Gortmaker , Thomas Gleixner , Andrew Morton , "Paul E. McKenney" , ppc-dev , Ingo Molnar X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Hi Frederic, On Fri, 8 Feb 2013 14:07:49 +1100 Stephen Rothwell wrote: > > This patch has the side effect of changing the default configurations: > (This is PowerPC pseries_defconfig before/after this patch) > > @@ -119,8 +120,8 @@ > # > # CPU/Task time and stats accounting > # > -# CONFIG_TICK_CPU_ACCOUNTING is not set > -CONFIG_VIRT_CPU_ACCOUNTING=y > +CONFIG_TICK_CPU_ACCOUNTING=y > +# CONFIG_VIRT_CPU_ACCOUNTING_NATIVE is not set > # CONFIG_BSD_PROCESS_ACCT is not set > CONFIG_TASKSTATS=y > CONFIG_TASK_DELAY_ACCT=y > > I don't know if that was deliberate, but it was suprising. I noticed > when this patch entered next-20130207. I suspect that this is caused by the changes to init/Kconfig: The next line of context is: default VIRT_CPU_ACCOUNTING if PPC64 Which may have needed changing as well? Indeed, changing that to VIRT_CPU_ACCOUNTING_NATIVE restores the old defaults. diff --git a/init/Kconfig b/init/Kconfig index be8b7f5..a05f843 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -326,6 +326,9 @@ source "kernel/time/Kconfig" menu "CPU/Task time and stats accounting" +config VIRT_CPU_ACCOUNTING + bool + choice prompt "Cputime accounting" default TICK_CPU_ACCOUNTING if !PPC64