Messages in this thread | | | Date | Sun, 3 Oct 2004 16:20:12 -0700 | From | Andrew Morton <> | Subject | Re: [PATCH 2.6][resend] Add DEVPATH env variable to hotplug helper call |
| |
"Josef 'Jeff' Sipek" <jeffpc@optonline.net> wrote: > > Add $DEVPATH to the environmental variables during /sbin/hotplug call. > > Josef 'Jeff' Sipek. > > Signed-off-by: Josef 'Jeff' Sipek <jeffpc@optonline.net> > > > 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |