Lines Matching refs:cpu

58     uint cpu = arch_curr_cpu_num();  in smptest_thread_func()  local
59 if (cpu != expected_cpu) { in smptest_thread_func()
61 printf("%s: thread %d started on wrong cpu: %d\n", __func__, i, cpu); in smptest_thread_func()
70 cpu = arch_curr_cpu_num(); in smptest_thread_func()
71 if (cpu != expected_cpu) { in smptest_thread_func()
73 printf("%s: thread %d ran on wrong cpu: %d\n", __func__, i, cpu); in smptest_thread_func()
172 for (uint cpu = 0; cpu < SMP_MAX_CPUS; cpu++) { in TEST() local
173 const struct smptest_thread* const smpt = &smptest_thread[cpu]; in TEST()
191 EXPECT_EQ(unblock_count, j, "cpu %d FAILED block count\n", cpu); in TEST()
192 EXPECT_EQ(error_count, 0, "cpu %d FAILED error count\n", cpu); in TEST()
193 EXPECT_EQ(done_count, j, "cpu %d FAILED done count\n", cpu); in TEST()
197 "[ INFO ] smptest cpu %d ran %d times\n", cpu, in TEST()
201 EXPECT_EQ(mp_is_cpu_active(cpu), false, in TEST()
202 "cpu %d active but not running", cpu); in TEST()
203 EXPECT_EQ(unblock_count, 0, "cpu %d FAILED block count\n", cpu); in TEST()
204 EXPECT_EQ(error_count, 0, "cpu %d FAILED error count\n", cpu); in TEST()
205 EXPECT_EQ(done_count, 0, "cpu %d FAILED done count\n", cpu); in TEST()
215 for (uint cpu = 0; cpu < SMP_MAX_CPUS; cpu++) { in smptest_setup() local
216 struct smptest_thread* smpt = &smptest_thread[cpu]; in smptest_setup()
219 snprintf(thread_name, sizeof(thread_name), "smptest-%u", cpu); in smptest_setup()
221 (void*)(uintptr_t)cpu, HIGH_PRIORITY, in smptest_setup()
223 thread_set_pinned_cpu(smpt->thread, cpu); in smptest_setup()
227 for (uint cpu = 0; cpu < SMP_MAX_CPUS; cpu++) { in smptest_setup() local
228 thread_resume(smptest_thread[cpu].thread); in smptest_setup()