From patchwork Wed Sep 5 19:37:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 146037 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp5340857ljw; Wed, 5 Sep 2018 12:38:32 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb/2/PVePJDhKZRa5Eh0kvbHyxdPmc93wtbhyp/Z2Cg8+CO7efKJxjTx65SyabJTWjYVnmG X-Received: by 2002:a63:9e41:: with SMTP id r1-v6mr37342730pgo.362.1536176312445; Wed, 05 Sep 2018 12:38:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536176312; cv=none; d=google.com; s=arc-20160816; b=n/qqwVI0pCeTlsVp4udiMmqhOOzGh5FFapxT/B+NBQl0xSUyIAs1Te4RPk9lUmHon+ W488wevjU63NpITdueLu92vGY3SFPlTj3ApqjzldsHUbkH+9O+p54O8BP4l2zBsROWdB EjrpdYW9Aty8B8pZpzwyYKQfWMjmlAoP6gTMx12FdS5wA8stgPc0HexZgZ+r3bn5GiiV DpKyClveWwLmbL2X7JHZCdbbDHVVxVgq6eq1+wHPrwiXAP3+z9DLIYx2M6LgHMLrpRne l7rubOn945YyXLhBM5uRZIrTR1YKXHhqP4BuNGr/XYOG8uKLCj1G7LT6gyc6AOhFTpf3 lgGQ== 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 bj4-v6si2603680plb.119.2018.09.05.12.38.32; Wed, 05 Sep 2018 12:38:32 -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 S1728305AbeIFAKI (ORCPT + 32 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(-) -- 2.17.1 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);