Home
last modified time | relevance | path

Searched refs:td_oncpu (Results 1 – 22 of 22) sorted by relevance

/freebsd/sys/dev/cpuctl/
H A Dcpuctl.c133 KASSERT(td->td_oncpu == cpu, in set_cpu()
135 cpu, td->td_oncpu)); in set_cpu()
226 oldcpu = td->td_oncpu; in cpuctl_do_cpuid_count()
272 oldcpu = td->td_oncpu; in cpuctl_do_msr()
378 oldcpu = td->td_oncpu; in update_intel()
476 oldcpu = td->td_oncpu; in update_via()
533 oldcpu = td->td_oncpu; in cpuctl_do_eval_cpu_features()
/freebsd/sys/kern/
H A Dsched_4bsd.c825 childtd->td_oncpu = NOCPU; in sched_4bsd_fork_thread()
1023 td->td_lastcpu = td->td_oncpu; in sched_4bsd_sswitch()
1029 td->td_oncpu = NOCPU; in sched_4bsd_sswitch()
1140 td->td_oncpu = PCPU_GET(cpuid); in sched_4bsd_sswitch()
1724 td->td_lastcpu = td->td_oncpu; in sched_4bsd_throw()
1725 td->td_oncpu = NOCPU; in sched_4bsd_throw()
1738 td->td_oncpu = PCPU_GET(cpuid); in sched_4bsd_fork_exit()
1826 if (THREAD_CAN_SCHED(td, td->td_oncpu)) in sched_4bsd_affinity()
H A Dsched_ule.c2348 td->td_lastcpu = td->td_oncpu; in sched_ule_sswitch()
2438 td->td_oncpu = NOCPU; in sched_ule_sswitch()
2440 cpuid = td->td_oncpu = PCPU_GET(cpuid); in sched_ule_sswitch()
2574 child->td_oncpu = NOCPU; in sched_ule_fork_thread()
3278 td->td_lastcpu = td->td_oncpu; in sched_ule_throw()
3279 td->td_oncpu = NOCPU; in sched_ule_throw()
3313 td->td_oncpu = cpuid; in sched_ule_fork_exit()
H A Dkern_rmlock.c452 pc = cpuid_to_pcpu[td->td_oncpu]; in _rm_rlock()
516 pc = cpuid_to_pcpu[td->td_oncpu]; in _rm_runlock()
H A Dkern_synch.c674 td->td_retval[0] = td->td_oncpu; in sys_sched_getcpu()
H A Dkern_proc.c155 const int thread_off_td_oncpu = offsetof(struct thread, td_oncpu);
1319 if (td->td_oncpu == NOCPU) in fill_kinfo_thread()
1321 else if (td->td_oncpu > MAXCPU_OLD) in fill_kinfo_thread()
1324 kp->ki_oncpu_old = td->td_oncpu; in fill_kinfo_thread()
1327 kp->ki_oncpu = td->td_oncpu; in fill_kinfo_thread()
H A Dinit_main.c531 td->td_oncpu = curcpu; in proc0_init()
H A Dkern_racct.c950 cpuid = td->td_oncpu; in racct_proc_throttle()
H A Dsubr_smp.c239 id = td->td_oncpu; in forward_signal()
H A Dsubr_turnstile.c1198 db_printf("running on CPU %d\n", td->td_oncpu); in print_lockchain()
H A Dkern_thread.c392 td->td_lastcpu = td->td_oncpu = NOCPU; in thread_ctor()
H A Dsubr_witness.c2727 if (owner->td_critnest == 0 || owner->td_oncpu == NOCPU)
2729 pc = pcpu_find(owner->td_oncpu); in witness_save()
2980 * td->td_oncpu to get the list of spinlocks for this thread in witness_ddb_list()
/freebsd/lib/libkvm/
H A Dkvm_proc.c453 kp->ki_oncpu = mtd.td_oncpu; in kvm_proclist()
474 if (mtd.td_oncpu == NOCPU) in kvm_proclist()
476 else if (mtd.td_oncpu > MAXCPU_OLD) in kvm_proclist()
479 kp->ki_oncpu_old = mtd.td_oncpu; in kvm_proclist()
/freebsd/sys/x86/x86/
H A Dstack_machdep.c133 cpuid = atomic_load_int(&td->td_oncpu); in stack_save_td()
H A Dcpu_machdep.c297 bound_cpu = td->td_oncpu; in x86_msr_op()
313 bound_cpu = td->td_oncpu; in x86_msr_op()
/freebsd/sys/ddb/
H A Ddb_ps.c311 snprintf(state, sizeof(state), "CPU %d", td->td_oncpu); in dumpthread()
376 db_printf("RUNNING (CPU %d)\n", td->td_oncpu); in DB_SHOW_COMMAND()
H A Ddb_command.c891 (long)td->td_tid, td, td->td_oncpu); in _db_stack_trace_all()
/freebsd/sys/gdb/
H A Dgdb_main.c487 if (ctx.iter->td_oncpu != NOCPU) { in do_qXfer_threads_read()
489 ctx.iter->td_oncpu); in do_qXfer_threads_read()
/freebsd/sys/dev/hwpmc/
H A Dhwpmc_mod.c761 pb->pb_cpu = curthread->td_oncpu; in pmc_save_cpu_binding()
774 curthread->td_oncpu, pb->pb_cpu); in pmc_restore_cpu_binding()
803 KASSERT(curthread->td_oncpu == cpu, in pmc_select_cpu()
805 cpu, curthread->td_oncpu)); in pmc_select_cpu()
1207 pmc_reclaim_pmc_from_cpu(pm, pp, curthread->td_oncpu); in pmc_detach_one_process()
1485 cpu = PCPU_GET(cpuid); /* td->td_oncpu is invalid */ in pmc_process_csw_in()
1727 cpu = PCPU_GET(cpuid); /* td->td_oncpu is invalid */ in pmc_process_csw_out()
2921 cpu = curthread->td_oncpu; /* setup cpu for pmd_release() */ in pmc_register_owner()
3561 if (pcd->pcd_allocate_pmc(td->td_oncpu, adjri, pmc, in pmc_do_op_pmcallocate()
3846 cpu = curthread->td_oncpu; in pmc_do_op_pmcrw()
[all...]
/freebsd/sys/powerpc/powerpc/
H A Dmachdep.c455 thread0.td_oncpu = bsp.cr_cpuid; in powerpc_init()
/freebsd/sys/sys/
H A Dproc.h387 int td_oncpu; /* (t) Which cpu we are on. */ member
/freebsd/sys/compat/linux/
H A Dlinux_misc.c2620 cpu = td->td_oncpu; /* Make sure it doesn't change during copyout(9) */ in linux_getcpu()