Lines Matching refs:ht
88 struct smp_hotplug_thread *ht; member
110 struct smp_hotplug_thread *ht = td->ht; in smpboot_thread_fn() local
119 if (ht->cleanup && td->status != HP_THREAD_NONE) in smpboot_thread_fn()
120 ht->cleanup(td->cpu, cpu_online(td->cpu)); in smpboot_thread_fn()
128 if (ht->park && td->status == HP_THREAD_ACTIVE) { in smpboot_thread_fn()
130 ht->park(td->cpu); in smpboot_thread_fn()
145 if (ht->setup) in smpboot_thread_fn()
146 ht->setup(td->cpu); in smpboot_thread_fn()
153 if (ht->unpark) in smpboot_thread_fn()
154 ht->unpark(td->cpu); in smpboot_thread_fn()
159 if (!ht->thread_should_run(td->cpu)) { in smpboot_thread_fn()
165 ht->thread_fn(td->cpu); in smpboot_thread_fn()
171 __smpboot_create_thread(struct smp_hotplug_thread *ht, unsigned int cpu) in __smpboot_create_thread() argument
173 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in __smpboot_create_thread()
183 td->ht = ht; in __smpboot_create_thread()
186 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()
277 *per_cpu_ptr(ht->store, cpu) = NULL; in smpboot_destroy_threads()