Skip calling CPU_ISSET for NOCPU as a short period of time we can have

td_oncpu is NOCPU for thread in TDS_RUNNING state.

Differential Revision:	https://reviews.freebsd.org/D1283
Reviewed by:	jhb
MFC after:	1 Month
This commit is contained in:
Dmitry Chagin 2014-12-09 14:21:43 +00:00
parent 2691a406c7
commit 469cb95ad6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=275644

View file

@ -96,7 +96,7 @@ kgdb_thr_add_procs(uintptr_t paddr)
kt->kaddr = addr;
if (td.td_tid == dumptid)
kt->pcb = dumppcb;
else if (td.td_state == TDS_RUNNING &&
else if (td.td_oncpu != NOCPU &&
CPU_ISSET(td.td_oncpu, &stopped_cpus))
kt->pcb = kgdb_trgt_core_pcb(td.td_oncpu);
else