From owner-p4-projects@FreeBSD.ORG Fri Dec 28 21:11:31 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4771F16A468; Fri, 28 Dec 2007 21:11:31 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D18D16A418 for ; Fri, 28 Dec 2007 21:11:31 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id EADC813C45A for ; Fri, 28 Dec 2007 21:11:30 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lBSLBUL9086464 for ; Fri, 28 Dec 2007 21:11:30 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lBSLBU8A086461 for perforce@freebsd.org; Fri, 28 Dec 2007 21:11:30 GMT (envelope-from jb@freebsd.org) Date: Fri, 28 Dec 2007 21:11:30 GMT Message-Id: <200712282111.lBSLBU8A086461@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jb@freebsd.org using -f From: John Birrell To: Perforce Change Reviews Cc: Subject: PERFORCE change 131903 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2007 21:11:31 -0000 http://perforce.freebsd.org/chv.cgi?CH=131903 Change 131903 by jb@jb_freebsd1 on 2007/12/28 21:10:37 Make cpu_lock global since users of cyclic timers need to lock it before calling the API. We probably should move this to an opensolaris module which would contain the memory and atomic functions that ported OpenSolaris kernel modules need to share. Affected files ... .. //depot/projects/dtrace/src/sys/contrib/opensolaris/uts/common/os/cyclic.c#11 edit Differences ... ==== //depot/projects/dtrace/src/sys/contrib/opensolaris/uts/common/os/cyclic.c#11 (text) ==== @@ -569,7 +569,7 @@ #include #define gethrtime_unscaled dtrace_gethrtime static cyclic_cpu_t cyclic_cpu[SMP_MAXCPU]; -static kmutex_t cpu_lock; +kmutex_t cpu_lock; #endif #ifdef CYCLIC_TRACE