Merge tag 'batadv-next-for-davem-20170802' of git://git.open-mesh.org/linux-merge
[linux-2.6-microblaze.git] / block / blk-mq-cpumap.c
index 4891f04..9f8cffc 100644 (file)
@@ -17,9 +17,9 @@
 static int cpu_to_queue_index(unsigned int nr_queues, const int cpu)
 {
        /*
-        * Non online CPU will be mapped to queue index 0.
+        * Non present CPU will be mapped to queue index 0.
         */
-       if (!cpu_online(cpu))
+       if (!cpu_present(cpu))
                return 0;
        return cpu % nr_queues;
 }