Re: [PATCH 2.6][resend] Add DEVPATH env variable to hotplug helpercall

From: Andrew Morton
Date: Sun Oct 03 2004 - 18:25:04 EST


"Josef 'Jeff' Sipek" <jeffpc@xxxxxxxxxxxxx> wrote:
>
> Add $DEVPATH to the environmental variables during /sbin/hotplug call.
>
> Josef 'Jeff' Sipek.
>
> Signed-off-by: Josef 'Jeff' Sipek <jeffpc@xxxxxxxxxxxxx>
>
>
> diff -Nru a/kernel/cpu.c b/kernel/cpu.c
> --- a/kernel/cpu.c 2004-09-24 13:08:57 -04:00
> +++ b/kernel/cpu.c 2004-09-24 13:08:57 -04:00
> @@ -61,13 +61,13 @@
> * cpu' with certain environment variables set. */
> static int cpu_run_sbin_hotplug(unsigned int cpu, const char *action)

I don't think this function should exist at all. We already have kobjects
which represent the CPUs so it should be possible to find that kobject and
use kobject_hotplug() on it. That gives you your $DEVPATH.

Does CPU hotplug behave correctly wrt /sys/devices/system/cpu? Given that
register_cpu() is still marked __init, I assume not.
-
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/