mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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:
parent
2691a406c7
commit
469cb95ad6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=275644
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue