From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Lars Segerlund <lars.segerlund@gmail.com>
Cc: linux-rt-users@vger.kernel.org
Subject: Re: rt & hotplug work....
Date: Fri, 20 Jul 2012 17:24:09 -0700 [thread overview]
Message-ID: <20120721002404.GA2435@linux.vnet.ibm.com> (raw)
In-Reply-To: <CAF-VNaoh=t50=6A-OXitYPJxz67Es_jFQeqsXcdJThexb8uHSg@mail.gmail.com>
On Fri, Jul 20, 2012 at 10:07:38PM +0200, Lars Segerlund wrote:
> There was some cpu hotplug work recently, and I can't get my head
> around what happens with a dual cpu system if one core is shut down,
> specificly with spinlocks.
> Won't it just hang or spin a lot ? I was thinking the locking was
> different in the build for uni of multi processors, to eliminate the
> deadlock risk on a uni processor.
>
> I do realise this might not be rt specific, but I'll ask anyhow.
When a CPU-hotplug operation takes a CPU offline, that CPU must release
any true spinlocks before actually going away. Therefore, when the
surviving CPU attempts to acquire a spinlock, it is guaranteed to
acquire it immediately. (Some architectures go even farther and
optimize away spinlock acquisitions when the system transitions to
single-CPU operation.)
Thanx, Paul
prev parent reply other threads:[~2012-07-21 0:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-20 20:07 rt & hotplug work Lars Segerlund
2012-07-21 0:24 ` Paul E. McKenney [this message]
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=20120721002404.GA2435@linux.vnet.ibm.com \
--to=paulmck@linux.vnet.ibm.com \
--cc=lars.segerlund@gmail.com \
--cc=linux-rt-users@vger.kernel.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).