Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760795AbXKDMLk (ORCPT ); Sun, 4 Nov 2007 07:11:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759622AbXKDMLZ (ORCPT ); Sun, 4 Nov 2007 07:11:25 -0500 Received: from ozlabs.org ([203.10.76.45]:59639 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758418AbXKDMLY (ORCPT ); Sun, 4 Nov 2007 07:11:24 -0500 From: Michael Neuling To: "Balbir Singh" cc: "Paul Mackerras" , Peter Zijlstra , linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org, Christian Borntraeger , Martin Schwidefsky , Ingo Molnar , Thomas Gleixner Subject: Re: [PATCH] Restore deterministic CPU accounting on powerpc In-reply-to: <661de9470711030202x24d0186cuc96a70156ecfa23f@mail.gmail.com> References: <18218.44089.274628.680088@cargo.ozlabs.ibm.com> <661de9470711030202x24d0186cuc96a70156ecfa23f@mail.gmail.com> Comments: In-reply-to "Balbir Singh" message dated "Sat, 03 Nov 2007 14:32:59 +0530." X-Mailer: MH-E 8.0.3; nmh 1.2; GNU Emacs 21.4.1 Date: Sun, 04 Nov 2007 23:11:27 +1100 Message-ID: <30600.1194178287@neuling.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1031 Lines: 32 > > +#ifndef CONFIG_VIRT_CPU_ACCOUNTING > > +void account_process_tick(int user_tick) > > +{ > > + if (user_tick) { > > + account_user_time(p, jiffies_to_cputime(1)); > > + account_user_time_scaled(p, jiffies_to_cputime(1)); > > + } else { > > + account_system_time(p, HARDIRQ_OFFSET, jiffies_to_cputime(1 )); > > + account_system_time_scaled(p, jiffies_to_cputime(1)); > > + } > > +} > > +#endif > > + > > Hi, Paul, > > So, scaled accounting will not be available if > CONFIG_VIRT_CPU_ACCOUNTING is defined? Am I reading this correctly Balbir, Paulus' patch will have merge issues with the scaled time cleanup patch I posted a week or so back. My cleanup patch is only in akpm's tree at this stage. Mikey - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/