From patchwork Thu Nov 24 14:56:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 5308 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id E4F9623E07 for ; Thu, 24 Nov 2011 14:56:40 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id B81FFA180DD for ; Thu, 24 Nov 2011 14:56:40 +0000 (UTC) Received: by faaa26 with SMTP id a26so3900449faa.11 for ; Thu, 24 Nov 2011 06:56:40 -0800 (PST) Received: by 10.152.162.10 with SMTP id xw10mr17661210lab.12.1322146600234; Thu, 24 Nov 2011 06:56:40 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.41.198 with SMTP id h6cs306866lal; Thu, 24 Nov 2011 06:56:39 -0800 (PST) Received: by 10.229.227.84 with SMTP id iz20mr3257771qcb.164.1322146597400; Thu, 24 Nov 2011 06:56:37 -0800 (PST) Received: from smtp.smtpout.orange.fr (smtp04.smtpout.orange.fr. [80.12.242.126]) by mx.google.com with ESMTP id x1si12035034qan.25.2011.11.24.06.56.36; Thu, 24 Nov 2011 06:56:37 -0800 (PST) Received-SPF: neutral (google.com: 80.12.242.126 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=80.12.242.126; Authentication-Results: mx.google.com; spf=neutral (google.com: 80.12.242.126 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: from monster.dhcp.lxc ([90.60.242.206]) by mwinf5d51 with ME id 12wb1i00E4TtzLy032wblR; Thu, 24 Nov 2011 15:56:36 +0100 From: Daniel Lezcano To: linux-arm-kernel@lists.arm.linux.org.uk Subject: [PATCH] ARM : fix /proc/interrupts per online cpu Date: Thu, 24 Nov 2011 15:56:10 +0100 Message-Id: <1322146570-24097-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.4.1 The loop should look at the online cpus instead of the present cpus in order to hide the offline cpus in procfs like it is done on the other architectures. Signed-off-by: Daniel Lezcano --- arch/arm/kernel/smp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index ef5640b..050f826 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c @@ -444,7 +444,7 @@ void show_ipi_list(struct seq_file *p, int prec) for (i = 0; i < NR_IPI; i++) { seq_printf(p, "%*s%u: ", prec - 1, "IPI", i); - for_each_present_cpu(cpu) + for_each_online_cpu(cpu) seq_printf(p, "%10u ", __get_irq_stat(cpu, ipi_irqs[i]));