Message ID | 20180905193738.19325-7-robh@kernel.org |
---|---|
State | Accepted |
Commit | de76e70a8d4ea4518ec46dff2f92e2970af1d512 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp5340191ljw; Wed, 5 Sep 2018 12:37:52 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda5bW671V+N9IZxUgwpFVLdKGLKN3QnlZwkU46Rq9jYoZ6aSzLbYA4TzwciyLNJwPO5qrIa X-Received: by 2002:a62:d713:: with SMTP id b19-v6mr4109077pfh.88.1536176272128; Wed, 05 Sep 2018 12:37:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536176272; cv=none; d=google.com; s=arc-20160816; b=vkIuKT5GxiVcZSUYOj99Mk88fzYiGtskEfwOlhcGrcxdNd/uucIQ9uKHuz64fSAxb/ tOHRKQakljcIUfuKaZBcIQqZ4mqGBRFAXapdYMEN5Izjx9Lf8em5/DZqynLiEe4Q36Mo wpTCtsFaNtHyzw4GJQKyDD1rRjgsxb5gEZh2x4WSPZSpjmtyGDeyvsMw+Z06G1oEb4MF afSB1KJSjehbSKhF4HjPYboQwM3AfpAO43w5jyzhswK7/L7Xy+gbFJfakCGQj8tYD59Y 0bI2V3SQltJHDMY5qsDnbswcUmIR39FgCYLSG7m2+wRGIfpNEMA7eCUFyew1HMEIbQpN 3kSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=ogh2LMa7oIMA73dH0bBLUtgkzUXNill/EWPZtdCSSbg=; b=0+NQxodw875fd09cRnBU793wEpTxeuBTffX8eLws9eQK97gdpRK/HjwJB/CfQlY/+U LRsEkOTarbuYSxOe4D+TFynMGwEiHCfReEUNq/DQpIivB2/+wlrvU0utj6pI/XxOlkF5 bSm1P+yjwDrwErnKABQeZOaqLI7ReG5lD2hoDvaCJNmAkk7eBugqtlXcgnyTa/johcYX brQ6cCwQnLGGi5CowAfkeLdXBfJ+ay0LzYd3luNlanY1UnBdOQGZnY7GAWNwo9TaQgdM kBECK77XRshpROV0lNxQ1P3VpcalI8jHZZtK+wG7Ce3jGc9JjDJwBS9CuIqwIt0G3xPn h7OQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w190-v6si2614709pgd.482.2018.09.05.12.37.51; Wed, 05 Sep 2018 12:37:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728067AbeIFAJ1 (ORCPT <rfc822;igor.opaniuk@linaro.org> + 32 others); Wed, 5 Sep 2018 20:09:27 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:32784 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727837AbeIFAJZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 5 Sep 2018 20:09:25 -0400 Received: by mail-oi0-f66.google.com with SMTP id 8-v6so15991242oip.0; Wed, 05 Sep 2018 12:37:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ogh2LMa7oIMA73dH0bBLUtgkzUXNill/EWPZtdCSSbg=; b=M4GzTlCedGuW29+CZCFar2Vvb7YCYXW6z2s6nDJkVCy5rKL3Z6xJGru98xolCbDWUC VZz6GySp82n2096AVb0xKOuvYVrIHetTqBp7614jkB9jSIMSqkXXFBvx4biAMUMQGkp8 yDWXAICx8zG59MfeW4E+oia3jnCIxTHxKlbaxhFvdsuyaOlbGv/SnVl30r0IdDTSnsZV KgUeSpP0LJ7x0xFkvumORWqhMqL9aLPj3ocWX1VD/91ZAnOMhErHkDI8Lz4Bgt1SsZ/c ljR7rQiCtkVS9NV2qcueTcC1uKjJQdPGPg4165nq9CiE4g7wl3lOG6Vgiai22UXMa5b6 bhMQ== X-Gm-Message-State: APzg51DxxZaoMrdDRRr1I2BZGi74c/KZKv3hfrnG9Z5gv0XwhwW6+/Jz ZJASfiEpQnjFkXgbrQhfeyUl7XA= X-Received: by 2002:a54:4091:: with SMTP id i17-v6mr19204570oii.352.1536176267710; Wed, 05 Sep 2018 12:37:47 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id u21-v6sm2296053oie.22.2018.09.05.12.37.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 12:37:46 -0700 (PDT) From: Rob Herring <robh@kernel.org> To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will.deacon@arm.com>, linux-arm-kernel@lists.infradead.org Subject: [PATCH 06/21] arm64: use for_each_of_cpu_node iterator Date: Wed, 5 Sep 2018 14:37:23 -0500 Message-Id: <20180905193738.19325-7-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180905193738.19325-1-robh@kernel.org> References: <20180905193738.19325-1-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index 25fcd22a4bb2..96b8f2f51ab2 100644 --- a/arch/arm64/kernel/smp.c +++ b/arch/arm64/kernel/smp.c @@ -602,7 +602,7 @@ static void __init of_parse_and_init_cpus(void) { struct device_node *dn; - for_each_node_by_type(dn, "cpu") { + for_each_of_cpu_node(dn) { u64 hwid = of_get_cpu_mpidr(dn); if (hwid == INVALID_HWID)
Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This has the side effect of defaulting to iterating using "cpu" node names in preference to the deprecated (for FDT) device_type == "cpu". Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will.deacon@arm.com> Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Rob Herring <robh@kernel.org> --- Please ack and I will take via the DT tree. This is dependent on the first 2 patches. arch/arm64/kernel/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1