Date: Fri, 14 Feb 2014 23:19:51 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r261906 - head/sys/kern Message-ID: <201402142319.s1ENJptX086235@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Fri Feb 14 23:19:51 2014 New Revision: 261906 URL: http://svnweb.freebsd.org/changeset/base/261906 Log: Include the CPU id in the per-CPU timer swi thread descriptions. Original patch by: jhb Modified: head/sys/kern/kern_timeout.c Modified: head/sys/kern/kern_timeout.c ============================================================================== --- head/sys/kern/kern_timeout.c Fri Feb 14 21:46:04 2014 (r261905) +++ head/sys/kern/kern_timeout.c Fri Feb 14 23:19:51 2014 (r261906) @@ -352,12 +352,14 @@ static void start_softclock(void *dummy) { struct callout_cpu *cc; + char name[MAXCOMLEN]; #ifdef SMP int cpu; #endif cc = CC_CPU(timeout_cpu); - if (swi_add(&clk_intr_event, "clock", softclock, cc, SWI_CLOCK, + snprintf(name, sizeof(name), "clock (%d)", timeout_cpu); + if (swi_add(&clk_intr_event, name, softclock, cc, SWI_CLOCK, INTR_MPSAFE, &cc->cc_cookie)) panic("died while creating standard software ithreads"); #ifdef SMP @@ -367,7 +369,8 @@ start_softclock(void *dummy) cc = CC_CPU(cpu); cc->cc_callout = NULL; /* Only cpu0 handles timeout(9). */ callout_cpu_init(cc); - if (swi_add(NULL, "clock", softclock, cc, SWI_CLOCK, + snprintf(name, sizeof(name), "clock (%d)", cpu); + if (swi_add(NULL, name, softclock, cc, SWI_CLOCK, INTR_MPSAFE, &cc->cc_cookie)) panic("died while creating standard software ithreads"); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402142319.s1ENJptX086235>