parisc,metag: Do not hardcode maximum userspace stack size
[deliverable/linux.git] / mm / zswap.c
index 34b75cc708276d920b38404a2623eaf64efe308a..aeaef0fb562400093a91517e9ce62ca63cb94bed 100644 (file)
@@ -388,18 +388,18 @@ static int zswap_cpu_init(void)
 {
        unsigned long cpu;
 
-       get_online_cpus();
+       cpu_notifier_register_begin();
        for_each_online_cpu(cpu)
                if (__zswap_cpu_notifier(CPU_UP_PREPARE, cpu) != NOTIFY_OK)
                        goto cleanup;
-       register_cpu_notifier(&zswap_cpu_notifier_block);
-       put_online_cpus();
+       __register_cpu_notifier(&zswap_cpu_notifier_block);
+       cpu_notifier_register_done();
        return 0;
 
 cleanup:
        for_each_online_cpu(cpu)
                __zswap_cpu_notifier(CPU_UP_CANCELED, cpu);
-       put_online_cpus();
+       cpu_notifier_register_done();
        return -ENOMEM;
 }
 
This page took 0.025233 seconds and 5 git commands to generate.