FreeBSD/sys/mips/rmi/fmn.c
/*
 * Start message ring processing threads on other CPUs, after SMP start
 */
Start message ring processing threads on other CPUs, after SMP start
Start message ring processing threads on other CPUs after SMP start
static void
start_msgring_threads(void *arg)
{
	int	hwt, tid;
	for (hwt = 1; hwt < XLR_MAX_CORES * XLR_NTHREADS; hwt++) {
		if ((xlr_hw_thread_mask & (1 << hwt)) == 0)
			continue;
		tid = hwt % XLR_NTHREADS;
		if (tid >= msgring_maxthreads)
			continue;
		create_msgring_thread(hwt);
	}
}
static void start_msgring_threads ( void * arg ) { int hwt , tid ; for ( hwt = 1 ; hwt < XLR_MAX_CORES * XLR_NTHREADS ; hwt ++ ) { if ( ( xlr_hw_thread_mask & ( 1 << hwt ) ) == 0 ) continue ; tid = hwt % XLR_NTHREADS ; if ( tid >= msgring_maxthreads ) continue ; create_msgring_thread ( hwt ) ; } }
Start message ring processing threads on other CPUs, after SMP start
Start message ring processing threads on other CPUs after SMP start