From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.179]) by ozlabs.org (Postfix) with ESMTP id D2F7BDDE09 for ; Sat, 3 Nov 2007 20:03:02 +1100 (EST) Received: by wa-out-1112.google.com with SMTP id m28so1323122wag for ; Sat, 03 Nov 2007 02:02:59 -0700 (PDT) Message-ID: <661de9470711030202x24d0186cuc96a70156ecfa23f@mail.gmail.com> Date: Sat, 3 Nov 2007 14:32:59 +0530 From: "Balbir Singh" Sender: bsingharora@gmail.com To: "Paul Mackerras" Subject: Re: [PATCH] Restore deterministic CPU accounting on powerpc In-Reply-To: <18218.44089.274628.680088@cargo.ozlabs.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <18218.44089.274628.680088@cargo.ozlabs.ibm.com> Cc: Peter Zijlstra , linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org, Christian Borntraeger , Martin Schwidefsky , Ingo Molnar , Thomas Gleixner List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > +#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 Singh