Lines Matching full:ht

87 	struct smp_hotplug_thread	*ht;  member
109 struct smp_hotplug_thread *ht = td->ht; in smpboot_thread_fn() local
118 if (ht->cleanup && td->status != HP_THREAD_NONE) in smpboot_thread_fn()
119 ht->cleanup(td->cpu, cpu_online(td->cpu)); in smpboot_thread_fn()
127 if (ht->park && td->status == HP_THREAD_ACTIVE) { in smpboot_thread_fn()
129 ht->park(td->cpu); in smpboot_thread_fn()
144 if (ht->setup) in smpboot_thread_fn()
145 ht->setup(td->cpu); in smpboot_thread_fn()
152 if (ht->unpark) in smpboot_thread_fn()
153 ht->unpark(td->cpu); in smpboot_thread_fn()
158 if (!ht->thread_should_run(td->cpu)) { in smpboot_thread_fn()
164 ht->thread_fn(td->cpu); in smpboot_thread_fn()
170 __smpboot_create_thread(struct smp_hotplug_thread *ht, unsigned int cpu) in __smpboot_create_thread() argument
172 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in __smpboot_create_thread()
182 td->ht = ht; in __smpboot_create_thread()
185 ht->thread_comm); in __smpboot_create_thread()
197 *per_cpu_ptr(ht->store, cpu) = tsk; in __smpboot_create_thread()
198 if (ht->create) { in __smpboot_create_thread()
208 ht->create(cpu); in __smpboot_create_thread()
228 static void smpboot_unpark_thread(struct smp_hotplug_thread *ht, unsigned int cpu) in smpboot_unpark_thread() argument
230 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_unpark_thread()
232 if (!ht->selfparking) in smpboot_unpark_thread()
247 static void smpboot_park_thread(struct smp_hotplug_thread *ht, unsigned int cpu) in smpboot_park_thread() argument
249 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_park_thread()
251 if (tsk && !ht->selfparking) in smpboot_park_thread()
266 static void smpboot_destroy_threads(struct smp_hotplug_thread *ht) in smpboot_destroy_threads() argument
272 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_destroy_threads()
276 *per_cpu_ptr(ht->store, cpu) = NULL; in smpboot_destroy_threads()