From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e23smtp03.au.ibm.com (e23smtp03.au.ibm.com [202.81.31.145]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e23smtp03.au.ibm.com", Issuer "GeoTrust SSL CA" (not verified)) by ozlabs.org (Postfix) with ESMTPS id A19E82C00BF for ; Fri, 22 Mar 2013 16:14:34 +1100 (EST) Received: from /spool/local by e23smtp03.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 22 Mar 2013 15:07:42 +1000 Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [9.190.234.120]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id AA4A13578051 for ; Fri, 22 Mar 2013 16:14:28 +1100 (EST) Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r2M513dG50659560 for ; Fri, 22 Mar 2013 16:01:03 +1100 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r2M5DvYJ010166 for ; Fri, 22 Mar 2013 16:13:58 +1100 Content-Type: text/plain; charset=UTF-8 From: Ian Munsie To: Michael Ellerman Subject: Re: [PATCH] powerpc: Add accounting for Doorbell interrupts In-reply-to: <20130322041803.GB26908@concordia> References: <1363765332-28461-1-git-send-email-imunsie@au1.ibm.com> <20130322041803.GB26908@concordia> Date: Fri, 22 Mar 2013 16:13:57 +1100 Message-Id: <1363928529-sup-704@delenn.ozlabs.ibm.com> Cc: Michael Neuling , linuxppc-dev List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Excerpts from Michael Ellerman's message of 2013-03-22 15:18:03 +1100: > On Wed, Mar 20, 2013 at 06:42:12PM +1100, Ian Munsie wrote: > > From: Ian Munsie > > > > This patch adds a new line to /proc/interrupts to account for the > > doorbell interrupts that each hardware thread has received. The total > > interrupt count in /proc/stat will now also include doorbells. > > Should it be inside CONFIG_PPC_DOORBELL ? The doorbell line will only show up in /proc/interrupt if CPU_FTR_DBELL is set and the total interrupt count in /proc/stat will be unaffected if we don't have doorbells (+ 0 doorbells). It still builds fine without CONFIG_PPC_DOORBELL. Adding #ifdefs would save one per cpu integer in irq_stat. I can throw together a v2 patch with them in place. Cheers, -Ian