Lines Matching refs:ht

86 	struct smp_hotplug_thread	*ht;  member
108 struct smp_hotplug_thread *ht = td->ht; in smpboot_thread_fn() local
116 if (ht->cleanup) in smpboot_thread_fn()
117 ht->cleanup(td->cpu, cpu_online(td->cpu)); in smpboot_thread_fn()
125 if (ht->park && td->status == HP_THREAD_ACTIVE) { in smpboot_thread_fn()
127 ht->park(td->cpu); in smpboot_thread_fn()
142 if (ht->setup) in smpboot_thread_fn()
143 ht->setup(td->cpu); in smpboot_thread_fn()
150 if (ht->unpark) in smpboot_thread_fn()
151 ht->unpark(td->cpu); in smpboot_thread_fn()
156 if (!ht->thread_should_run(td->cpu)) { in smpboot_thread_fn()
162 ht->thread_fn(td->cpu); in smpboot_thread_fn()
168 __smpboot_create_thread(struct smp_hotplug_thread *ht, unsigned int cpu) in __smpboot_create_thread() argument
170 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in __smpboot_create_thread()
180 td->ht = ht; in __smpboot_create_thread()
183 ht->thread_comm); in __smpboot_create_thread()
189 *per_cpu_ptr(ht->store, cpu) = tsk; in __smpboot_create_thread()
190 if (ht->create) { in __smpboot_create_thread()
200 ht->create(cpu); in __smpboot_create_thread()
220 static void smpboot_unpark_thread(struct smp_hotplug_thread *ht, unsigned int cpu) in smpboot_unpark_thread() argument
222 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_unpark_thread()
224 if (ht->pre_unpark) in smpboot_unpark_thread()
225 ht->pre_unpark(cpu); in smpboot_unpark_thread()
239 static void smpboot_park_thread(struct smp_hotplug_thread *ht, unsigned int cpu) in smpboot_park_thread() argument
241 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_park_thread()
243 if (tsk && !ht->selfparking) in smpboot_park_thread()
257 static void smpboot_destroy_threads(struct smp_hotplug_thread *ht) in smpboot_destroy_threads() argument
263 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_destroy_threads()
268 *per_cpu_ptr(ht->store, cpu) = NULL; in smpboot_destroy_threads()