Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/sched_ule.c
Show First 20 Lines • Show All 277 Lines • ▼ Show 20 Lines | |||||
static int trysteal_limit = 2; | static int trysteal_limit = 2; | ||||
/* | /* | ||||
* One thread queue per processor. | * One thread queue per processor. | ||||
*/ | */ | ||||
static struct tdq tdq_cpu[MAXCPU]; | static struct tdq tdq_cpu[MAXCPU]; | ||||
static struct tdq *balance_tdq; | static struct tdq *balance_tdq; | ||||
static int balance_ticks; | static int balance_ticks; | ||||
static DPCPU_DEFINE(uint32_t, randomval); | DPCPU_DEFINE_STATIC(uint32_t, randomval); | ||||
#define TDQ_SELF() (&tdq_cpu[PCPU_GET(cpuid)]) | #define TDQ_SELF() (&tdq_cpu[PCPU_GET(cpuid)]) | ||||
#define TDQ_CPU(x) (&tdq_cpu[(x)]) | #define TDQ_CPU(x) (&tdq_cpu[(x)]) | ||||
#define TDQ_ID(x) ((int)((x) - tdq_cpu)) | #define TDQ_ID(x) ((int)((x) - tdq_cpu)) | ||||
#else /* !SMP */ | #else /* !SMP */ | ||||
static struct tdq tdq_cpu; | static struct tdq tdq_cpu; | ||||
#define TDQ_ID(x) (0) | #define TDQ_ID(x) (0) | ||||
▲ Show 20 Lines • Show All 2,783 Lines • Show Last 20 Lines |