Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp299imm; Wed, 5 Sep 2018 12:40:11 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbuiUB6uWZChSvEJjDuGgdfKHaMftojAG4IwoDYQYpvnL8ITjJ7nUgtHDrINbGpaZgI4mN7 X-Received: by 2002:a63:c44a:: with SMTP id m10-v6mr38365636pgg.416.1536176411637; Wed, 05 Sep 2018 12:40:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536176411; cv=none; d=google.com; s=arc-20160816; b=fnliBHI/zVGTjI2zH81EuHuQ2xlIUNT6/Y11a/qex8XciDkCwwB7HV6fbGbm70sKEn 94VUfbn5Z48lvqGsKKp3RR2NcLfsWUR4bEugaTSMinVFH8WzLu0N8oSf+NtlOVhXEJNI cdZKIWn26X30ikSJTOeZnUVzpXfhxzppV8u5Ib4lE7K1m6L6ssA2xxAa9ErKe6HGOf8F FiyrrnOIkYRYwCNIVYZjMHiGZf3GAYZWdP5Xk1GxREMc014T1EEGMmhKK+BOCmz5AvJg B7N6riqVdgg6F4SFMR5anxNMVNY4+aoH5tmse3B8L2qNXFZjaAXmLC2J9EigQEzkG0wt goeg== 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=VGNyhY5tgQV4KWn3opIp4M/wV8dFtqeR1pRxx+K7ox8=; b=Mzs2+FWAiy25f9VAx+RXT+THtGQzu+3IhGJTp+0+Fpm2WtyPE/c/1K5paozaiOwxyw Xw16QU2t1S/iF/dV33g0494OySLzy1NvTYWWU0JJUuhPfw41jk+nXiaGBPFDMLt16+2d qFrdwJa7RqTev55TCRA+fp8Xs3xUkoIXy61vJyHQCT8DmQ49K130Zef9i6oMTDbb5AAN UG6jYn3IKq/YT9rqahqkbqiB2yy5Ybi9pN/RVS1pgIyErAWWA78X898yG807qD8ElDqt XiQW6gx/PRCVSvWAwM+3MdKg+nYC2dMa7ZDVVtUIRsm9woQnDNz6STifEO8PpkSftkPH isdQ== 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 j14-v6si2825699pgh.22.2018.09.05.12.39.56; Wed, 05 Sep 2018 12:40:11 -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 S1728302AbeIFAKI (ORCPT + 99 others); Wed, 5 Sep 2018 20:10:08 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:45527 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728182AbeIFAJh (ORCPT ); Wed, 5 Sep 2018 20:09:37 -0400 Received: by mail-oi0-f66.google.com with SMTP id t68-v6so15895516oie.12; Wed, 05 Sep 2018 12:37:59 -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=VGNyhY5tgQV4KWn3opIp4M/wV8dFtqeR1pRxx+K7ox8=; b=chNCd9vk1q8uKgMf/9J9U9X5Dh3CIGsTDJSwVh5EmGkVNmj2+7LheeXkpaZXUyNNwd IjkC5l0W4M9JHZstAsXFK7eDxzbEQAz1xu9gJkW8KtbJ6eWVIa1MqDoTbEk7cZQ0TPRe b3pde8KKEuI9GA1sEiA91y6uBy4bIighG2L/OOufVnYmrMQqnxzkrTD4JffeV9qknoNE F1VKpQ8T99oNWRhjerBhtWLjDYHxB3jZd25FJaCknZEhd1IcNtsu7JsBkzmwOcEc771P x4IazCBsi+I2XcAbt35Bi3obf+U0kGTn0udGdoj2YzEeV2tR69JcTZrAV2I1MVUmkkcn KOUQ== X-Gm-Message-State: APzg51Df0uDW3DNm+CRZsT+7NcPuRwfDqHG9IZ+c9V91rHsXzbQitm+r lkSbW8ZT3ier04hRk5Al3RN/dns= X-Received: by 2002:aca:aa06:: with SMTP id t6-v6mr33049663oie.152.1536176278961; Wed, 05 Sep 2018 12:37:58 -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.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 12:37:58 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org Subject: [PATCH 16/21] x86: DT: use for_each_of_cpu_node iterator Date: Wed, 5 Sep 2018 14:37:33 -0500 Message-Id: <20180905193738.19325-17-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: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x86@kernel.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/x86/kernel/devicetree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/devicetree.c b/arch/x86/kernel/devicetree.c index f39f3a06c26f..7299dcbf8e85 100644 --- a/arch/x86/kernel/devicetree.c +++ b/arch/x86/kernel/devicetree.c @@ -140,7 +140,7 @@ static void __init dtb_cpu_setup(void) int ret; version = GET_APIC_VERSION(apic_read(APIC_LVR)); - for_each_node_by_type(dn, "cpu") { + for_each_of_cpu_node(dn) { ret = of_property_read_u32(dn, "reg", &apic_id); if (ret < 0) { pr_warn("%pOF: missing local APIC ID\n", dn); -- 2.17.1