Lines Matching refs:ht

83 	struct smp_hotplug_thread	*ht;  member
105 struct smp_hotplug_thread *ht = td->ht; in smpboot_thread_fn() local
114 if (ht->cleanup && td->status != HP_THREAD_NONE) in smpboot_thread_fn()
115 ht->cleanup(td->cpu, cpu_online(td->cpu)); in smpboot_thread_fn()
123 if (ht->park && td->status == HP_THREAD_ACTIVE) { in smpboot_thread_fn()
125 ht->park(td->cpu); in smpboot_thread_fn()
140 if (ht->setup) in smpboot_thread_fn()
141 ht->setup(td->cpu); in smpboot_thread_fn()
148 if (ht->unpark) in smpboot_thread_fn()
149 ht->unpark(td->cpu); in smpboot_thread_fn()
154 if (!ht->thread_should_run(td->cpu)) { in smpboot_thread_fn()
160 ht->thread_fn(td->cpu); in smpboot_thread_fn()
166 __smpboot_create_thread(struct smp_hotplug_thread *ht, unsigned int cpu) in __smpboot_create_thread() argument
168 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in __smpboot_create_thread()
178 td->ht = ht; in __smpboot_create_thread()
181 ht->thread_comm); in __smpboot_create_thread()
193 *per_cpu_ptr(ht->store, cpu) = tsk; in __smpboot_create_thread()
194 if (ht->create) { in __smpboot_create_thread()
204 ht->create(cpu); in __smpboot_create_thread()
224 static void smpboot_unpark_thread(struct smp_hotplug_thread *ht, unsigned int cpu) in smpboot_unpark_thread() argument
226 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_unpark_thread()
228 if (!ht->selfparking) in smpboot_unpark_thread()
243 static void smpboot_park_thread(struct smp_hotplug_thread *ht, unsigned int cpu) in smpboot_park_thread() argument
245 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_park_thread()
247 if (tsk && !ht->selfparking) in smpboot_park_thread()
262 static void smpboot_destroy_threads(struct smp_hotplug_thread *ht) in smpboot_destroy_threads() argument
268 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_destroy_threads()
272 *per_cpu_ptr(ht->store, cpu) = NULL; in smpboot_destroy_threads()