Re: [PATCH] Documentation / CPU hotplug: Fix the typo in examplecode

From: Andrew Morton
Date: Wed Jan 15 2014 - 18:33:37 EST


On Wed, 15 Jan 2014 14:10:26 +0900 Sangjung Woo <sangjung.woo@xxxxxxxxxxx> wrote:

> As the notifier_block name (i.e. foobar_cpu_notifer) is different from
> the parameter (i.e.foobar_cpu_notifier) of register function, that is
> definitely error and it also makes readers confused.
>

btw, that document doesn't mention hotcpu_notifier(), which is actually
the preferred means of registration. Because it causes all the hotplug
code to be elided when CONFIG_HOTPLUG_CPU=n, without using ifdefs.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/