Searched refs:on_cpu (Results 1 - 5 of 5) sorted by relevance

/linux-4.1.27/kernel/locking/
H A Drwsem-xadd.c321 ret = owner->on_cpu; rwsem_can_spin_on_owner()
335 * Ensure we emit the owner->on_cpu, dereference _after_ rwsem_spin_on_owner()
343 if (!owner->on_cpu || need_resched()) { rwsem_spin_on_owner()
H A Dmutex.c232 * Ensure we emit the owner->on_cpu, dereference _after_ mutex_spin_on_owner()
239 if (!owner->on_cpu || need_resched()) { mutex_spin_on_owner()
265 retval = owner->on_cpu; mutex_can_spin_on_owner()
/linux-4.1.27/kernel/sched/
H A Dsched.h1026 return p->on_cpu; task_running()
1060 next->on_cpu = 1; prepare_lock_switch()
1068 * After ->on_cpu is cleared, the task can be moved to a different CPU. finish_lock_switch()
1074 smp_store_release(&prev->on_cpu, 0); finish_lock_switch()
H A Dcore.c1683 while (p->on_cpu) try_to_wake_up()
1959 p->on_cpu = 0; sched_fork()
2221 * We must observe prev->state before clearing prev->on_cpu (in
2463 * Reading ->on_cpu is racy, but this is ok. task_sched_runtime()
2468 * If we see ->on_cpu without ->on_rq, the task is leaving, and has task_sched_runtime()
2471 if (!p->on_cpu || !task_on_rq_queued(p)) task_sched_runtime()
4632 idle->on_cpu = 1; init_idle()
/linux-4.1.27/include/linux/
H A Dsched.h1302 int on_cpu; member in struct:task_struct

Completed in 152 milliseconds