From owner-p4-projects@FreeBSD.ORG  Sat Jan 26 00:45:28 2008
Return-Path: <owner-p4-projects@FreeBSD.ORG>
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 645B116A41A; Sat, 26 Jan 2008 00:45:28 +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 29C5A16A417
	for <perforce@freebsd.org>; Sat, 26 Jan 2008 00:45:28 +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 1272113C47E
	for <perforce@freebsd.org>; Sat, 26 Jan 2008 00:45:28 +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 m0Q0jRjV095148
	for <perforce@freebsd.org>; Sat, 26 Jan 2008 00:45:27 GMT
	(envelope-from jb@freebsd.org)
Received: (from perforce@localhost)
	by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m0Q0jRV5095145
	for perforce@freebsd.org; Sat, 26 Jan 2008 00:45:27 GMT
	(envelope-from jb@freebsd.org)
Date: Sat, 26 Jan 2008 00:45:27 GMT
Message-Id: <200801260045.m0Q0jRV5095145@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
	jb@freebsd.org using -f
From: John Birrell <jb@FreeBSD.org>
To: Perforce Change Reviews <perforce@freebsd.org>
Cc: 
Subject: PERFORCE change 134113 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes <p4-projects.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/p4-projects>,
	<mailto:p4-projects-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/p4-projects>
List-Post: <mailto:p4-projects@freebsd.org>
List-Help: <mailto:p4-projects-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/p4-projects>,
	<mailto:p4-projects-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 26 Jan 2008 00:45:28 -0000

http://perforce.freebsd.org/chv.cgi?CH=134113

Change 134113 by jb@jb_freebsd1 on 2008/01/26 00:45:06

	Make the chill code work.
	
	I feel like I need to use the word "dude" here too.

Affected files ...

.. //depot/projects/dtrace/src/sys/contrib/opensolaris/uts/common/dtrace/dtrace.c#27 edit

Differences ...

==== //depot/projects/dtrace/src/sys/contrib/opensolaris/uts/common/dtrace/dtrace.c#27 (text) ====

@@ -5434,15 +5434,12 @@
 static void
 dtrace_action_chill(dtrace_mstate_t *mstate, hrtime_t val)
 {
-printf("%s(%d): DOODAD\n",__func__,__LINE__);
-#ifdef DOODAD
 	hrtime_t now;
 	volatile uint16_t *flags;
 #if defined(sun)
 	cpu_t *cpu = CPU;
 #else
-	cpu_t *c = &solaris_cpu[curcpu];
-	struct pcpu *cpu = pcpu_find(curcpu);
+	cpu_t *cpu = &solaris_cpu[curcpu];
 #endif
 
 	if (dtrace_destructive_disallow)
@@ -5481,7 +5478,6 @@
 	 */
 	mstate->dtms_present &= ~DTRACE_MSTATE_TIMESTAMP;
 	cpu->cpu_dtrace_chilled += val;
-#endif
 }
 
 static void