MIPS: Replace deprecated CPU-hotplug functions.
[linux-2.6-microblaze.git] / arch / mips / kernel / process.c
index 73c8e79..95aa86f 100644 (file)
@@ -859,10 +859,10 @@ int mips_set_process_fp_mode(struct task_struct *task, unsigned int value)
         * scheduled in then it will already have picked up the new FP mode
         * whilst doing so.
         */
-       get_online_cpus();
+       cpus_read_lock();
        for_each_cpu_and(cpu, &process_cpus, cpu_online_mask)
                work_on_cpu(cpu, prepare_for_fp_mode_switch, NULL);
-       put_online_cpus();
+       cpus_read_unlock();
 
        return 0;
 }