Lines Matching refs:plug_thread
282 int smpboot_register_percpu_thread_cpumask(struct smp_hotplug_thread *plug_thread, in smpboot_register_percpu_thread_cpumask() argument
288 if (!alloc_cpumask_var(&plug_thread->cpumask, GFP_KERNEL)) in smpboot_register_percpu_thread_cpumask()
290 cpumask_copy(plug_thread->cpumask, cpumask); in smpboot_register_percpu_thread_cpumask()
295 ret = __smpboot_create_thread(plug_thread, cpu); in smpboot_register_percpu_thread_cpumask()
297 smpboot_destroy_threads(plug_thread); in smpboot_register_percpu_thread_cpumask()
298 free_cpumask_var(plug_thread->cpumask); in smpboot_register_percpu_thread_cpumask()
302 smpboot_unpark_thread(plug_thread, cpu); in smpboot_register_percpu_thread_cpumask()
304 list_add(&plug_thread->list, &hotplug_threads); in smpboot_register_percpu_thread_cpumask()
318 void smpboot_unregister_percpu_thread(struct smp_hotplug_thread *plug_thread) in smpboot_unregister_percpu_thread() argument
322 list_del(&plug_thread->list); in smpboot_unregister_percpu_thread()
323 smpboot_destroy_threads(plug_thread); in smpboot_unregister_percpu_thread()
326 free_cpumask_var(plug_thread->cpumask); in smpboot_unregister_percpu_thread()
339 int smpboot_update_cpumask_percpu_thread(struct smp_hotplug_thread *plug_thread, in smpboot_update_cpumask_percpu_thread() argument
342 struct cpumask *old = plug_thread->cpumask; in smpboot_update_cpumask_percpu_thread()
355 smpboot_park_thread(plug_thread, cpu); in smpboot_update_cpumask_percpu_thread()
360 smpboot_unpark_thread(plug_thread, cpu); in smpboot_update_cpumask_percpu_thread()