aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHeiko Carstens <[email protected]>2006-11-08 19:46:09 -0800
committerGreg Kroah-Hartman <[email protected]>2006-12-01 14:52:01 -0800
commit06a4bcae1ff2cd5f6f42bd74add85ec785a26343 (patch)
tree666cba3de43b602125df3b143a08d22f4188b13b /include
parent289535334646796fe41f199718e4a731f7411a92 (diff)
cpu topology: consider sysfs_create_group return value
Take return value of sysfs_create_group() into account. That function got called in case of CPU_ONLINE notification. Since callbacks are not allowed to fail on CPU_ONLINE notification do the sysfs group creation on CPU_UP_PREPARE notification. Also remember if creation succeeded in a bitmask. So it's possible to know whether it's legal to call sysfs_remove_group or not. In addition some other minor stuff: - since CPU_UP_PREPARE might fail add CPU_UP_CANCELED handling as well. - use hotcpu_notifier instead of register_hotcpu_notifier. - #ifdef code that isn't needed in the !CONFIG_HOTPLUG_CPU case. Signed-off-by: Heiko Carstens <[email protected]> Acked-by: Cornelia Huck <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions