From patchwork Wed Sep 5 19:37:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 146020 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp5340089ljw; Wed, 5 Sep 2018 12:37:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdadoZ3GTGsNsXmXncsjcycSE/bXAv8H9UQkyL9Y6l5H368ls/luHlMbhc7VibnLtWlJzVhl X-Received: by 2002:a17:902:32f:: with SMTP id 44-v6mr40086146pld.15.1536176266381; Wed, 05 Sep 2018 12:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536176266; cv=none; d=google.com; s=arc-20160816; b=KVKgNzdH11kOkJTmiLZVtcUf6bzIHtFct1BSCgyDWdCUHtm1yLvdW3XymkwFtcLNHA OzldBU5Q01YVjbOBglOvW22W5FvrwmRdQZ3wJi5O63sD0Xc+LkQu0uNRwsF/db4b2Ydj s5G/jYTZcr6wsBDpeeYFc1lN63y1ttcBT8JELeOMHIqVReUxKH9yqROzHnMGseUpLZKT 5osBdtHT9T9QhJue4iNUJhkH5CfTv0vdx33ueJdvZqCFgC6XdecKo1aFnWIBK6E7uBgI yEx09FuvhUwFNkgTJUi15XYqsUPSYBsXCrggD6OSLvGql7j6ftXqhNHdrKj9i+e7tMDf /5vw== 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=rJl7bStQj+04nlhA7ldCDFwni9AmvvXZWSoLu0pTFFrLftdnbMAkLB0ylOVfrd8kvG I5UdYyS37rzkINYQe6QxUPIsF42IAnpZf1cpVuuDb1QLIJbQIN4ssYSX9OiFGcZPnIQy qoxMAdjCg0YZArYEql+w+Igu/DTixthV1r0GEcR4k7ujPs1a4I38JDnQ35dRiZSFT5BN nZt6/fyCmyBbX+ggqdrce7I7Jn2iHLSe5mw1tixbEnbeX1zydqpjtX6+rAkKWG8uE/DC QZPUX6JxgMoLnGJsPck6mzoHs259ySvl7y0JCo+pjBbc/5VEQJ4bEhwUvQaXro05mqLn A67w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 h126-v6si3181436pfe.72.2018.09.05.12.37.46; Wed, 05 Sep 2018 12:37:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1727844AbeIFAJW (ORCPT + 6 others); Wed, 5 Sep 2018 20:09:22 -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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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(-) -- 2.17.1 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"