On Thu, Jan 29, 2015 at 12:36:55PM +1100, David Gibson wrote: > On Thu, Jan 08, 2015 at 11:40:14AM +0530, Bharata B Rao wrote: > > PowerPC kernel adds or removes CPUs in core granularity and hence > > onlines/offlines all the SMT threads of a core during hot plug/unplug. > > Support this notion by starting all SMT threads of a core when a core > > is hotplugged. > > > > Signed-off-by: Bharata B Rao <bhar...@linux.vnet.ibm.com> > > --- > > hw/ppc/spapr.c | 25 +++++++++++++++++++++++++ > > 1 file changed, 25 insertions(+) > > > > diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c > > index a293a59..4347471 100644 > > --- a/hw/ppc/spapr.c > > +++ b/hw/ppc/spapr.c > > @@ -1376,6 +1376,8 @@ static void spapr_drc_reset(void *opaque) > > } > > } > > > > +static const char *current_cpu_model; > > More new global variables? Please don't.
Sure, I should be able to get the model name from the type name of the object as Igor suggested earlier. Regards, Bharata.