X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fbase%2Ftopology.c;h=3ef9d514b916985af339d2af7067903daf9a881e;hb=d1ad4ea331e78a5ff90eda7718da31bcbc1a9c38;hp=915810f6237eeca929235e1502983080989a3376;hpb=2746b8623abce815aaae7afc946b1b39f8436f5a;p=powerpc.git diff --git a/drivers/base/topology.c b/drivers/base/topology.c index 915810f623..3ef9d514b9 100644 --- a/drivers/base/topology.c +++ b/drivers/base/topology.c @@ -125,7 +125,7 @@ static int __cpuinit topology_cpu_callback(struct notifier_block *nfb, return NOTIFY_OK; } -static struct notifier_block topology_cpu_notifier = +static struct notifier_block __cpuinitdata topology_cpu_notifier = { .notifier_call = topology_cpu_callback, }; @@ -139,7 +139,7 @@ static int __cpuinit topology_sysfs_init(void) (void *)(long)i); } - register_cpu_notifier(&topology_cpu_notifier); + register_hotcpu_notifier(&topology_cpu_notifier); return 0; }