Commit fb69c390 authored by Nathan Lynch's avatar Nathan Lynch Committed by Linus Torvalds
Browse files

[PATCH] generate hotplug events for cpu online

We already do kobject_hotplug for cpu offline; this adds a kobject_hotplug
call for the online case.  This is being requested by developers of an
application which wants to be notified about both kinds of events.
Signed-off-by: default avatarNathan Lynch <>
Cc: Rusty Russell <>
Cc: Greg KH <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent a9fa06c2
......@@ -44,6 +44,8 @@ static ssize_t store_online(struct sys_device *dev, const char *buf,
ret = smp_prepare_cpu(cpu->;
if (!ret)
ret = cpu_up(cpu->;
if (!ret)
kobject_hotplug(&dev->kobj, KOBJ_ONLINE);
ret = -EINVAL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment