Date: Thu, 21 Nov 2019 23:55:43 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r354988 - head/sys/kern Message-ID: <201911212355.xALNthX0096030@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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++) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911212355.xALNthX0096030>