svn commit: r354988 - head/sys/kern
Gleb Smirnoff
glebius at FreeBSD.org
Thu Nov 21 23:55:43 UTC 2019
Author: glebius
Date: Thu Nov 21 23:55:43 2019
New Revision: 354988
URL: https://svnweb.freebsd.org/changeset/base/354988
Log:
cc_ktr_event_name is used only with KTR
Modified:
head/sys/kern/kern_timeout.c
Modified: head/sys/kern/kern_timeout.c
==============================================================================
--- head/sys/kern/kern_timeout.c Thu Nov 21 23:55:19 2019 (r354987)
+++ head/sys/kern/kern_timeout.c Thu Nov 21 23:55:43 2019 (r354988)
@@ -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++) {
More information about the svn-src-all
mailing list