Lines Matching refs:ht

86 	struct smp_hotplug_thread	*ht;  member
108 struct smp_hotplug_thread *ht = td->ht; in smpboot_thread_fn() local
117 if (ht->cleanup && td->status != HP_THREAD_NONE) in smpboot_thread_fn()
118 ht->cleanup(td->cpu, cpu_online(td->cpu)); in smpboot_thread_fn()
126 if (ht->park && td->status == HP_THREAD_ACTIVE) { in smpboot_thread_fn()
128 ht->park(td->cpu); in smpboot_thread_fn()
143 if (ht->setup) in smpboot_thread_fn()
144 ht->setup(td->cpu); in smpboot_thread_fn()
151 if (ht->unpark) in smpboot_thread_fn()
152 ht->unpark(td->cpu); in smpboot_thread_fn()
157 if (!ht->thread_should_run(td->cpu)) { in smpboot_thread_fn()
163 ht->thread_fn(td->cpu); in smpboot_thread_fn()
169 __smpboot_create_thread(struct smp_hotplug_thread *ht, unsigned int cpu) in __smpboot_create_thread() argument
171 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in __smpboot_create_thread()
181 td->ht = ht; in __smpboot_create_thread()
184 ht->thread_comm); in __smpboot_create_thread()
190 *per_cpu_ptr(ht->store, cpu) = tsk; in __smpboot_create_thread()
191 if (ht->create) { in __smpboot_create_thread()
201 ht->create(cpu); in __smpboot_create_thread()
221 static void smpboot_unpark_thread(struct smp_hotplug_thread *ht, unsigned int cpu) in smpboot_unpark_thread() argument
223 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_unpark_thread()
225 if (!ht->selfparking) in smpboot_unpark_thread()
240 static void smpboot_park_thread(struct smp_hotplug_thread *ht, unsigned int cpu) in smpboot_park_thread() argument
242 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_park_thread()
244 if (tsk && !ht->selfparking) in smpboot_park_thread()
258 static void smpboot_destroy_threads(struct smp_hotplug_thread *ht) in smpboot_destroy_threads() argument
264 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_destroy_threads()
269 *per_cpu_ptr(ht->store, cpu) = NULL; in smpboot_destroy_threads()