From owner-svn-src-all@FreeBSD.ORG Fri Feb 14 23:19:51 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CFC08EF; Fri, 14 Feb 2014 23:19:51 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B951611E4; Fri, 14 Feb 2014 23:19:51 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1ENJp79086236; Fri, 14 Feb 2014 23:19:51 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1ENJptX086235; Fri, 14 Feb 2014 23:19:51 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201402142319.s1ENJptX086235@svn.freebsd.org> From: Adrian Chadd Date: Fri, 14 Feb 2014 23:19:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r261906 - head/sys/kern X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Feb 2014 23:19:51 -0000 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"); }