Lines Matching refs:threads
285 /* Set maximum priority to preempt all other threads on this CPU. */
370 struct task_struct **threads;
373 threads = kmalloc_array(nb_available_cpus, sizeof(*threads),
375 if (!threads)
380 * mode, as it might interfere with the suspend threads on other CPUs.
381 * This does not prevent the suspend threads from using cpuidle (only
405 threads[nb_threads++] = thread;
416 * Wake up the suspend threads. To avoid the main thread being preempted
417 * before all the threads have been unparked, the suspend threads will
421 wake_up_process(threads[i]);
427 /* Stop and destroy all threads, get return status. */
429 err += kthread_park(threads[i]);
430 err += kthread_stop(threads[i]);
434 kfree(threads);