From patchwork Fri Mar 27 12:14:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanjun Guo X-Patchwork-Id: 6106521 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 671AC9F350 for ; Fri, 27 Mar 2015 12:17:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8A57E20421 for ; Fri, 27 Mar 2015 12:17:54 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A82C820304 for ; Fri, 27 Mar 2015 12:17:53 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YbTAp-0006zx-Dq; Fri, 27 Mar 2015 12:15:40 +0000 Received: from mail-pa0-f45.google.com ([209.85.220.45]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YbTAh-0006eE-2Q for linux-arm-kernel@lists.infradead.org; Fri, 27 Mar 2015 12:15:32 +0000 Received: by pacwe9 with SMTP id we9so94210070pac.1 for ; Fri, 27 Mar 2015 05:15:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=nMl3t9Zt5PeyxhTUAMvvSN9LMoybUv8SHG/T8H6x9nc=; b=Cu34ZqVLKbsBcHf1s45Ynv8P3Xd26JS2iUywSFv5nUKz334+HoBIyO3Rf7yEIXhzjI oPrkVQruJmw21N3I/H/iFki9QppB8nA0EsddY+Oo/m6uhuhGlWk7boSgCwapkH3XFGPe 2mAaVdtWlxpqw5ITluHCwt/T7mGtjWPTV07355W4OFf0cQvRPO17CUap5oDvCWje9D1k B+r2PS+B1HUuYe7pW6hcrvYZBSMI+pfCobNcvtomNjv4f0vpd842+yynnh6Bwpbzlm/j WlS5L3gmjcmnTJRi9Y8zwmGVfAr0+TaXkPmB8N/VrrlskgxoDkQoom2CGuZdBJzQV9f+ WVXw== X-Gm-Message-State: ALoCoQmL9kQu4ErDUiGjeZ+5Tzh3w6mBiWKz7xMvZpt9dfrgTar+LFPX10M7iknplfLEMpgoHybI X-Received: by 10.69.16.199 with SMTP id fy7mr34867688pbd.147.1427458507671; Fri, 27 Mar 2015 05:15:07 -0700 (PDT) Received: from localhost ([104.207.83.1]) by mx.google.com with ESMTPSA id k9sm2039578pbq.46.2015.03.27.05.15.06 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 27 Mar 2015 05:15:06 -0700 (PDT) From: Hanjun Guo To: Will Deacon , Catalin Marinas Subject: [PATCH 1/2] ARM64 / ACPI: Ignore the return error value of acpi_map_gic_cpu_interface() Date: Fri, 27 Mar 2015 20:14:35 +0800 Message-Id: <1427458476-20140-1-git-send-email-hanjun.guo@linaro.org> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150327_051531_206152_83956287 X-CRM114-Status: UNSURE ( 8.95 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Mark Rutland , Lorenzo Pieralisi , linaro-acpi@lists.linaro.org, "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Hanjun Guo , Sudeep Holla , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP MADT table scannig will stopped once it gets the errors returned by the handler, which is acpi_map_gic_cpu_interface() in for ARM64, so Ignore the return error value to search for all enabled CPUs for SMP init. Signed-off-by: Hanjun Guo --- arch/arm64/kernel/acpi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kernel/acpi.c b/arch/arm64/kernel/acpi.c index 07649e4..c263cba 100644 --- a/arch/arm64/kernel/acpi.c +++ b/arch/arm64/kernel/acpi.c @@ -181,7 +181,8 @@ acpi_parse_gic_cpu_interface(struct acpi_subtable_header *header, return -EINVAL; acpi_table_print_madt_entry(header); - return acpi_map_gic_cpu_interface(processor); + acpi_map_gic_cpu_interface(processor); + return 0; } /* Parse GIC cpu interface entries in MADT for SMP init */