Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1609440yba; Thu, 25 Apr 2019 02:43:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxL7c0fT8qS5/+XRG8sQBhg63U1cSSdjlWnGm4gB1Cz45tb3H8/wunTvC38k+AFI8oIBC9p X-Received: by 2002:a63:5b4d:: with SMTP id l13mr35735460pgm.160.1556185439576; Thu, 25 Apr 2019 02:43:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556185439; cv=none; d=google.com; s=arc-20160816; b=WTQ3R19j+DuEhvK61xl+aRtwfzRj9e4xhizNgOYpXohm3zYSC2SfLsjQOERNxHN3G3 AuZf0Bf9sViOgBIJzmZSBzemZSqyN1eIoceTOJLhX+/aA71oQiPvjQeTnDvRYgRLET/s hAbVZjMAkyA09uOjTwbQYFu1Opyb1thiDM0Ic+gqW4gzBnykHOJiXVcBLa59OcYMvSzO Q82IswS0/X+kRkgPFP0BDCzjfgcWRxBdMIODdF8fWfQOd21KWSkhKkYL2PYDGag/jzIR IW0xLUeQxRmvC4iap18lcSOQCnlluAKoq5KdbDbteH0VDOAWWctAUTon6ylzPIelN7vr wfCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ln8QXo3VahHgagbcbgBnRPxrha1DYz6r8fzsF0xHU84=; b=hMqBNIIWKHBt8lTKZkRRM0nqEfIPcsbcg5LnGtoQXLXRFFRi2rqZm/Xnfix9wDalZq gEpKsbhSfP8jM8xFpzlEM06sqf0Zbvb1Bo8S2qX0uSUTJbdyTLepCZTa04TEsWWU+knC zeiWwO1zYSYv3CkZ0VM0CKaf2dE4IGB/Q4ECB0xYkIjA2ZluDcG5xXuLp4voOOB4KRyl gVSWZ2VvgJB6m+8wYiSC/7ZnsjF3xAU2gyUS13Qpb9PXW3udp180YwS0ALzmyJoaVrsa nft7WmtcxmFmLjqn1I/KbKPdhAx4uV5Ona5zjxDl9kEYl4fbuiFx5/DMkiK0Q3hUuj5c VUeA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n9si19898577pgp.539.2019.04.25.02.43.45; Thu, 25 Apr 2019 02:43:59 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728639AbfDYJlz (ORCPT + 99 others); Thu, 25 Apr 2019 05:41:55 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:38982 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726439AbfDYJlz (ORCPT ); Thu, 25 Apr 2019 05:41:55 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 286C5374; Thu, 25 Apr 2019 02:41:55 -0700 (PDT) Received: from e107155-lin (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 24A343F5AF; Thu, 25 Apr 2019 02:41:52 -0700 (PDT) Date: Thu, 25 Apr 2019 10:41:47 +0100 From: Sudeep Holla To: Atish Patra Cc: linux-kernel@vger.kernel.org, Christoph Hellwig , Albert Ou , Andreas Schwab , Anup Patel , Johan Hovold , linux-riscv@lists.infradead.org, Palmer Dabbelt , Paul Walmsley , Damien Le Moal Subject: Re: [PATCH 2/4] RISC-V: Implement nosmp commandline option. Message-ID: <20190425094147.GA6585@e107155-lin> References: <20190424214801.18880-1-atish.patra@wdc.com> <20190424214801.18880-3-atish.patra@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190424214801.18880-3-atish.patra@wdc.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 24, 2019 at 02:47:59PM -0700, Atish Patra wrote: > nosmp command line option sets max_cpus to zero. No secondary harts > will boot if this is enabled. But present cpu mask will still point to > all possible masks. > > Fix present cpu mask for nosmp usecase. > > Signed-off-by: Atish Patra > Reviewed-by: Christoph Hellwig I just noticed RISC-V has CONFIG_SMP option configurable. ARM64 has it always on and no option to disable :) Anyways, this looks good. Reviewed-by: Sudeep Holla -- Regards, Sudeep