Lines Matching refs:t
272 struct bL_thread *t = arg; in bL_switcher_thread() local
278 complete(&t->started); in bL_switcher_thread()
283 wait_event_interruptible(t->wq, in bL_switcher_thread()
284 t->wanted_cluster != -1 || in bL_switcher_thread()
287 spin_lock(&t->lock); in bL_switcher_thread()
288 cluster = t->wanted_cluster; in bL_switcher_thread()
289 completer = t->completer; in bL_switcher_thread()
290 completer_cookie = t->completer_cookie; in bL_switcher_thread()
291 t->wanted_cluster = -1; in bL_switcher_thread()
292 t->completer = NULL; in bL_switcher_thread()
293 spin_unlock(&t->lock); in bL_switcher_thread()
346 struct bL_thread *t; in bL_switch_request_cb() local
353 t = &bL_threads[cpu]; in bL_switch_request_cb()
355 if (IS_ERR(t->task)) in bL_switch_request_cb()
356 return PTR_ERR(t->task); in bL_switch_request_cb()
357 if (!t->task) in bL_switch_request_cb()
360 spin_lock(&t->lock); in bL_switch_request_cb()
361 if (t->completer) { in bL_switch_request_cb()
362 spin_unlock(&t->lock); in bL_switch_request_cb()
365 t->completer = completer; in bL_switch_request_cb()
366 t->completer_cookie = completer_cookie; in bL_switch_request_cb()
367 t->wanted_cluster = new_cluster_id; in bL_switch_request_cb()
368 spin_unlock(&t->lock); in bL_switch_request_cb()
369 wake_up(&t->wq); in bL_switch_request_cb()
577 struct bL_thread *t = &bL_threads[cpu]; in bL_switcher_enable() local
578 spin_lock_init(&t->lock); in bL_switcher_enable()
579 init_waitqueue_head(&t->wq); in bL_switcher_enable()
580 init_completion(&t->started); in bL_switcher_enable()
581 t->wanted_cluster = -1; in bL_switcher_enable()
582 t->task = bL_switcher_thread_create(cpu, t); in bL_switcher_enable()
605 struct bL_thread *t; in bL_switcher_disable() local
630 t = &bL_threads[cpu]; in bL_switcher_disable()
631 task = t->task; in bL_switcher_disable()
632 t->task = NULL; in bL_switcher_disable()
640 init_completion(&t->started); in bL_switcher_disable()
641 t->wanted_cluster = bL_switcher_cpu_original_cluster[cpu]; in bL_switcher_disable()
642 task = bL_switcher_thread_create(cpu, t); in bL_switcher_disable()
644 wait_for_completion(&t->started); in bL_switcher_disable()