lkml.org 
[lkml]   [2015]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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.


\
 
 \ /
  Last update: 2015-12-15 13:01    [W:0.080 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site