I don't think that the check 'if (node_online(node))' is necessarybecause sysfs_nodes[node] is there no matter if the node is onlineor offline. sysfs_nodes[] is cleared only when unregister_node()is called and it would be always called after unregister_cpu().Thanks,Keiichiro Tokunaga