Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/subr_epoch.c
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | struct epoch { | ||||
struct epoch_pcpu_state *e_pcpu_dom[MAXMEMDOM] __aligned(EPOCH_ALIGN); | struct epoch_pcpu_state *e_pcpu_dom[MAXMEMDOM] __aligned(EPOCH_ALIGN); | ||||
int e_idx; | int e_idx; | ||||
int e_flags; | int e_flags; | ||||
struct epoch_pcpu_state *e_pcpu[0]; | struct epoch_pcpu_state *e_pcpu[0]; | ||||
}; | }; | ||||
epoch_t allepochs[MAX_EPOCHS]; | epoch_t allepochs[MAX_EPOCHS]; | ||||
DPCPU_DEFINE(struct grouptask, epoch_cb_task); | DPCPU_GLOBAL_DEFINE(struct grouptask, epoch_cb_task); | ||||
DPCPU_DEFINE(int, epoch_cb_count); | DPCPU_GLOBAL_DEFINE(int, epoch_cb_count); | ||||
static __read_mostly int domcount[MAXMEMDOM]; | static __read_mostly int domcount[MAXMEMDOM]; | ||||
static __read_mostly int domoffsets[MAXMEMDOM]; | static __read_mostly int domoffsets[MAXMEMDOM]; | ||||
static __read_mostly int inited; | static __read_mostly int inited; | ||||
static __read_mostly int epoch_count; | static __read_mostly int epoch_count; | ||||
__read_mostly epoch_t global_epoch; | __read_mostly epoch_t global_epoch; | ||||
__read_mostly epoch_t global_epoch_preempt; | __read_mostly epoch_t global_epoch_preempt; | ||||
▲ Show 20 Lines • Show All 505 Lines • Show Last 20 Lines |