Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1742imm; Wed, 5 Sep 2018 12:41:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZy/QyzUaoLeloR6W3C/dVTsi3YnbgDpuaqhUllzg9rXDsM/gLDScU2Xn+V2HPlDqMA6O8J X-Received: by 2002:a63:ff50:: with SMTP id s16-v6mr3973317pgk.241.1536176506325; Wed, 05 Sep 2018 12:41:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536176506; cv=none; d=google.com; s=arc-20160816; b=Lj98NbDwrss0Mv4hCaT4V46nfvGlNdkQE0ZHPKk0n8DpV+yblXWWVv1Qp7VRLvlhWU GPbYieiUmmxqVP8C7NKHL+4FjRXFFCYI+2IgoWU789JLzY5OsfipFjr/DUN15SN3yS6t 4pS4SNHKh6e7P56UG1AQMkcK8u4kuwIJwx8Y4eO2e+e1mHJJuZ73QjbMAlOPLYOJBYH1 n6luBuzurNJc2bnOGHEswll8W82bXOnrezz6ZfkfvtxOHYf5J2yuFmY5m9YbfIHD/37p eQGkwye1lX8WyX4Ns5CWiGhtKxZdMvZWQuAY5769GVu9RTSCzAWJOG89+OMML2T5LrPk jVcQ== 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=P8KAoGaqqdG0MEoqvgPjzWestWMNGhkRFyu8R356duA=; b=aRqXnI1sZg1K7/UZziusb2p4FCy7/mujKENBCwyWUP/KP9bPy7xeX78Jh37RUfLK+p NaTS52WEl2OeDn+WHTVlSJx+ey9KnRTVauJAeeBvifwOjIclgZPUmoOkAfP4sNABrm/F RX6TDs+HgA3PSsl6H6wG7cgpMJOWPWMrZV4Sf2MInbqY7dAS0N6k0uEPFZ9w5X0FcK6U I6H5+Pjpfe3I2ZV4OqZXvf9iZT8i/0GGCUnQSBtul/Qu6PZdGebxHy0GwEZT9SQigUef FugHP4kn+fCMjWp/Rg3U21xS9Sjw2S1aHlke8cJP26aWAo+ch7AZI/YQQ3zj4TQ4QN30 IugQ== 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: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q3-v6si2736588plb.102.2018.09.05.12.41.31; Wed, 05 Sep 2018 12:41:46 -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 S1728002AbeIFAJX (ORCPT + 99 others); Wed, 5 Sep 2018 20:09:23 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:45481 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727837AbeIFAJW (ORCPT ); Wed, 5 Sep 2018 20:09:22 -0400 Received: by mail-oi0-f67.google.com with SMTP id t68-v6so15894088oie.12; Wed, 05 Sep 2018 12:37:44 -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=P8KAoGaqqdG0MEoqvgPjzWestWMNGhkRFyu8R356duA=; b=C2aUE40Xk2Sz5tyeCSEOtzaFlZPdiVqkRqJVLMKQ80UACKVPdL3epmkNmDDO8RWZvJ O1x9ihpJaRHz+TUz4O2R9YyQh61Z3TAVe3CcvYrCWN43vFyhp3rzPNu3T33B5pdomkri 6MQ5OzzsQ8Ps+5lZK39nJPV6R19O9JCOjzo4+1qV9cf4x+ldJaD9YfORvX38Xq2Yv3cc EUYd8HJwKD0V6WnWjt+qCGEh+2gcprUte8mBwPz94R4DuF95wbGxaknMHapb0f1PEPox MaHhY+VNMUHMPEFV+ght3yn8/XZkXMABzcxHETLzAignMCf+H3/bmUE5zT37ZYh4KESi x+qg== X-Gm-Message-State: APzg51DaFQ8ODJlm2YBhspV4bM9sayf74/MXOmhGg28ME2LcpghO65EW cQt2N4EfrFuteNJErWPLMCGlHLA= X-Received: by 2002:aca:720e:: with SMTP id p14-v6mr20428268oic.40.1536176263765; Wed, 05 Sep 2018 12:37:43 -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.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 12:37:43 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Russell King , linux-arm-kernel@lists.infradead.org Subject: [PATCH 03/21] ARM: use for_each_of_cpu_node iterator Date: Wed, 5 Sep 2018 14:37:20 -0500 Message-Id: <20180905193738.19325-4-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: X-Mailing-List: linux-kernel@vger.kernel.org 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: Russell King Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Rob Herring --- Please ack and I will take via the DT tree. This is dependent on the first 2 patches. arch/arm/kernel/devtree.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm/kernel/devtree.c b/arch/arm/kernel/devtree.c index ecaa68dd1af5..13bcd3b867cb 100644 --- a/arch/arm/kernel/devtree.c +++ b/arch/arm/kernel/devtree.c @@ -87,14 +87,11 @@ void __init arm_dt_init_cpu_maps(void) if (!cpus) return; - for_each_child_of_node(cpus, cpu) { + for_each_of_cpu_node(cpu) { const __be32 *cell; int prop_bytes; u32 hwid; - if (of_node_cmp(cpu->type, "cpu")) - continue; - pr_debug(" * %pOF...\n", cpu); /* * A device tree containing CPU nodes with missing "reg" -- 2.17.1