[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151215112612.GG31299@leverpostej>
Date: Tue, 15 Dec 2015 11:26:13 +0000
From: Mark Rutland <mark.rutland@....com>
To: Will Deacon <will.deacon@....com>
Cc: "Suzuki K. Poulose" <suzuki.poulose@....com>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
catalin.marinas@....com, marc.zyngier@....com
Subject: Re: [RFC PATCH v3 2/8] arm64: Move cpu_die_early to smp.c
On Tue, Dec 15, 2015 at 11:23:39AM +0000, Will Deacon wrote:
> > +/*
> > + * Kill the calling secondary CPU, early in bringup before it is turned
> > + * online.
> > + */
> > +void cpu_die_early(void)
> > +{
> > + int cpu = smp_processor_id();
> > +
> > + pr_crit("CPU%d: will not boot\n", cpu);
> > +
> > + /* Mark this CPU absent */
> > + set_cpu_present(cpu, 0);
> > +
> > +#ifdef CONFIG_HOTPLUG_CPU
> > + /* Check if we can park ourselves */
> > + if (cpu_ops[cpu] && cpu_ops[cpu]->cpu_die)
>
> IS_ENABLED?
The definition of struct cpu_ops has cpu_die in an #ifdef
CONFIG_HOTPLUG_CPU.
Mark.
--
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