Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp578020img; Fri, 22 Mar 2019 04:25:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzYhMX4UW58ThiIGMaYRstr5gJH7XKHAI2ALf6vCnAfgf4OY5v4uYeXqMYIFzcBHfOIYOo X-Received: by 2002:a62:5959:: with SMTP id n86mr8601727pfb.237.1553253925974; Fri, 22 Mar 2019 04:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553253925; cv=none; d=google.com; s=arc-20160816; b=YF7xKh4DHmlewjpms0OZrKD734VtgCodlXqnzplg0pn9kZCmBSvOI5KDbxqYrKpyqi FXX1luYQeK0bWmL+hHZLL22qA5E0Nam46SSiUQFxBKdxDd71IVAv1pdRd4w0upUntTfm H8Sdvvbw6G42aYM6kt00H5e3GmcbY/CKju62AXFkRFRo6bQujpR9orOCzsUeUX1jQ99M w4UIzpc5xn+XQ3vDZtpfkZhLEWyvBGN7tOkpGMU44kydo54Xe+LmOjHpSg2O0YNjC9MC t5t5o8ZaFQkN5PnyL3W6Mp2jZEX5J2jClucPvcgUgP/ITWZuW/Rvm5zulUW7Doz7Wqty QUbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=oSfVmJYATpYZc47Vll0OHTtQiKNDbP2EvCiwaXG943o=; b=f2MQqNehUZmUpYWU5xMu7rCj9n3Errz6XV5DA6la6tW63dQT1OZXZ2AJB3Y6xM9Rue Ut/Dn98ZhDT5TW9Wp1+aSy41MWVMmUbSfTlEy9Uu6GZ0maAz1vRk3TdbdxAA9Xezc9Cl +NdQathaWB26af0KRqV2OtIiHRgojl/O5G0hdJIFBkGUa0AiCO1VckV3rn2hJY2CC/1J QNtYjpKljm/8St+E83U/ufK6e5w5EDheNGK2CuJzBFsxMJZKxDFaCDaxo9kDfKdf8BTP yVOODxvwARitthnxnG0/nLgXKZ/y23KtiLwOPbIYXZh8BalBz8m+uDXp/VsSVDLVIlvx Sicg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kng6jOXT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k7si6578447pfb.69.2019.03.22.04.25.08; Fri, 22 Mar 2019 04:25:25 -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; dkim=pass header.i=@kernel.org header.s=default header.b=kng6jOXT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728976AbfCVLXb (ORCPT + 99 others); Fri, 22 Mar 2019 07:23:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:50418 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728614AbfCVLX3 (ORCPT ); Fri, 22 Mar 2019 07:23:29 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0EEB12190A; Fri, 22 Mar 2019 11:23:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553253808; bh=FQm5p6VRF6Hrs39Azz1XFAqZIlJss/d9zS5xkb1kGdU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kng6jOXT3PxW+7Rzqf5IpIFlmnxNo+0+ltNKyEC7jmXGY1/Vc4fUYZqC6eHVSeKMb hGi+mNCcKB6gNJKWrXKH2BkF3A3yJsKaKV4MLrHpG/suK0uCm8zjxyrj3GSQ+CqS16 kf2svvwdv6idDRBEenHRi8yHIVNQzZbRBXlksYaw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Max Filippov , Sasha Levin Subject: [PATCH 3.18 061/134] xtensa: SMP: mark each possible CPU as present Date: Fri, 22 Mar 2019 12:14:34 +0100 Message-Id: <20190322111214.440355160@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190322111210.465931067@linuxfoundation.org> References: <20190322111210.465931067@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 8b1c42cdd7181200dc1fff39dcb6ac1a3fac2c25 ] Otherwise it is impossible to enable CPUs after booting with 'maxcpus' parameter. Signed-off-by: Max Filippov Signed-off-by: Sasha Levin --- arch/xtensa/kernel/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/xtensa/kernel/smp.c b/arch/xtensa/kernel/smp.c index 545144d1431d..0e34c1ed4aa8 100644 --- a/arch/xtensa/kernel/smp.c +++ b/arch/xtensa/kernel/smp.c @@ -80,7 +80,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus) { unsigned i; - for (i = 0; i < max_cpus; ++i) + for_each_possible_cpu(i) set_cpu_present(i, true); } -- 2.19.1