diff mbox series

[10/12] htm: Check threads !active instead of quiesced

Message ID 20210802054112.461728-11-jniethe5@gmail.com
State Superseded
Headers show
Series P10 HTM Support | expand

Commit Message

Jordan Niethe Aug. 2, 2021, 5:41 a.m. UTC
The P10 thread_state quiesced status is
maint_mode && thread_quiesced && ict_empty
which is more than is needed for taking a core HTM trace.
Instead check the secondary threads are !active.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
---
 src/htm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/htm.c b/src/htm.c
index a08f244b2a3c..ba1175e110f3 100644
--- a/src/htm.c
+++ b/src/htm.c
@@ -230,7 +230,7 @@  static bool is_smt1(struct pdbg_target *target)
 	}
 
 	/* secondary thread */
-	if (thread_status(target).quiesced)
+	if (!thread_status(target).active)
 		return true;
 
 fail: