[PATCH v3] ARM: smp: Only expose /sys/.../cpuX/online if hotpluggable
Geert Uytterhoeven
geert at linux-m68k.org
Mon Feb 16 01:03:54 PST 2015
On Sat, Feb 14, 2015 at 1:42 AM, Stephen Boyd <sboyd at codeaurora.org> wrote:
> --- a/arch/arm/include/asm/smp.h
> +++ b/arch/arm/include/asm/smp.h
> @@ -104,6 +104,7 @@ struct smp_operations {
> #ifdef CONFIG_HOTPLUG_CPU
> int (*cpu_kill)(unsigned int cpu);
> void (*cpu_die)(unsigned int cpu);
> + int (*cpu_can_disable)(unsigned int cpu);
Perhaps this should be changed to return bool while you're adding the function?
That saves us from an atomic update later when someone does janitorial work.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
More information about the linux-arm-kernel
mailing list