/* Verify CPU IDs of threads in SMP. 
Verify whether thread running on other core is parent thread from child thread  */
ZTEST(smp, test_cpu_id_threads)
/* Verify CPU IDs of threads in SMP. 
Verify whether thread running on other core is parent thread from child thread  */
ZTEST(smp, test_cpu_id_threads)
{
	k_sleep(K_MSEC(1000));
	int parent_cpu_id = curr_cpu();
	k_tid_t tid = k_thread_create(&t2, t2_stack, T2_STACK_SIZE, child_fn,
				      INT_TO_POINTER(parent_cpu_id), NULL,
				      NULL, K_PRIO_PREEMPT(2), 0, K_NO_WAIT);
	while (sync_count == -1) {
	}
	k_sem_take(&cpuid_sema, K_FOREVER);
	k_thread_abort(tid);
	k_thread_join(tid, K_FOREVER);
}