cc_ktr_event_name is used only with KTR

This commit is contained in:
Gleb Smirnoff 2019-11-21 23:55:43 +00:00
parent 8e11e76e12
commit 329377f44b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354988

View file

@ -175,7 +175,9 @@ struct callout_cpu {
void *cc_cookie;
u_int cc_bucket;
u_int cc_inited;
#ifdef KTR
char cc_ktr_event_name[20];
#endif
};
#define callout_migrating(c) ((c)->c_iflags & CALLOUT_DFRMIGRATION)
@ -335,8 +337,10 @@ callout_cpu_init(struct callout_cpu *cc, int cpu)
cc->cc_firstevent = SBT_MAX;
for (i = 0; i < 2; i++)
cc_cce_cleanup(cc, i);
#ifdef KTR
snprintf(cc->cc_ktr_event_name, sizeof(cc->cc_ktr_event_name),
"callwheel cpu %d", cpu);
#endif
if (cc->cc_callout == NULL) /* Only BSP handles timeout(9) */
return;
for (i = 0; i < ncallout; i++) {