[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4FC8BBBF.6090701@linux.vnet.ibm.com>
Date: Fri, 01 Jun 2012 18:25:27 +0530
From: "Srivatsa S. Bhat" <srivatsa.bhat@...ux.vnet.ibm.com>
To: Russell King - ARM Linux <linux@....linux.org.uk>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Hirokazu Takata <takata@...ux-m32r.org>,
Richard Kuo <rkuo@...eaurora.org>,
David Howells <dhowells@...hat.com>,
Bob Liu <lliubbo@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Richard Weinberger <richard@....at>,
Jesper Nilsson <jesper.nilsson@...s.com>,
"James E.J. Bottomley" <jejb@...isc-linux.org>,
Martin Schwidefsky <schwidefsky@...ibm.com>,
Matt Turner <mattst88@...il.com>, nikunj@...ux.vnet.ibm.com
Subject: Re: [PATCH 03/27] smpboot: Define and use cpu_state per-cpu variable
in generic code
On 06/01/2012 05:55 PM, Russell King - ARM Linux wrote:
> On Fri, Jun 01, 2012 at 05:49:14PM +0530, Srivatsa S. Bhat wrote:
>> Adding arch maintainers to Cc, which I had missed earlier. No changes to the
>> patch.
>
> Could someone explain what this variable does - afaics this patch adds
> this per-cpu variable to all SMP architectures where its required or
> not, and (so far) the generic code just writes one value to it.
>
Several architectures use this per-cpu variable to track the state of the cpu
(like CPU_DEAD), particularly to deal with cpu offline.
(At this point, we have just tried to generalize code without any major
functional changes.)
> Are there plans to make use of this in other generic code?
>
The idea of this patchset is to make smp booting and cpu hotplug code as
generic as possible and eventually have _one_ implementation in the generic
code which can be reused by all architectures that want it.
And this patchset generalizes only the booting of secondary cpus. But in
future, we can use this as a base and implement cpu hotplug handling in
generic code, where this variable will become more useful.
Regards,
Srivatsa S. Bhat
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists