linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: rvaswani@codeaurora.org (Rohit Vaswani)
To: linux-arm-kernel@lists.infradead.org
Subject: maxcpus behavior in arm64
Date: Tue, 13 May 2014 11:56:01 -0700	[thread overview]
Message-ID: <53726AC1.9030207@codeaurora.org> (raw)

Hi Catalin,

I notice that the maxcpus behavior is different in arm64 than from how 
arm uses it.
in arm64/kernel/smp.c - in smp_prepare_cpus, maxcpus is used to limit 
the cpu_present_mask.
However in arm/kernel/smp.c - maxcpus is not used as a decision maker to 
set the cpu_preset_mask.

Is this behavior expected and intentionally different in arm and arm64 ?
This also means that in arm64 (unlike arm)- maxcpus cannot be used to 
boot a subset of total cpus with the
option of getting the secondary cores online at a later point from 
userspace using hotplug.
It seems like maxcpus is being treated like nr_cpus in arm64 ?
Please could you help clarify this behavior and help us understand this 
better.

Thanks,
Rohit Vaswani

-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation

             reply	other threads:[~2014-05-13 18:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-13 18:56 Rohit Vaswani [this message]
2014-05-13 21:02 ` maxcpus behavior in arm64 Catalin Marinas
2014-05-14  0:10   ` Rohit Vaswani
2014-05-14 12:57     ` Catalin Marinas
2014-05-14 17:49       ` Rohit Vaswani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53726AC1.9030207@codeaurora.org \
    --to=rvaswani@codeaurora.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).