From owner-p4-projects@FreeBSD.ORG Fri Dec 28 21:08:27 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 779C716A419; Fri, 28 Dec 2007 21:08:27 +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 3D4F416A417 for ; Fri, 28 Dec 2007 21:08:27 +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 328EA13C448 for ; Fri, 28 Dec 2007 21:08:27 +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 lBSL8Reg085519 for ; Fri, 28 Dec 2007 21:08:27 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lBSL8R7R085515 for perforce@freebsd.org; Fri, 28 Dec 2007 21:08:27 GMT (envelope-from jb@freebsd.org) Date: Fri, 28 Dec 2007 21:08:27 GMT Message-Id: <200712282108.lBSL8R7R085515@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 131902 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:08:27 -0000 http://perforce.freebsd.org/chv.cgi?CH=131902 Change 131902 by jb@jb_freebsd1 on 2007/12/28 21:07:59 The resolution passed into cyclic_init is only used in Solaris, so we don't need to bother setting it. Affected files ... .. //depot/projects/dtrace/src/sys/cddl/amd64/cyclic_machdep.c#4 edit Differences ... ==== //depot/projects/dtrace/src/sys/cddl/amd64/cyclic_machdep.c#4 (text+ko) ==== @@ -54,7 +54,6 @@ NULL /* cyb_arg_t cyb_arg */ }; -static hrtime_t resolution; static void *cyclic_lock_ih; static void *cyclic_low_ih; @@ -100,9 +99,6 @@ static void cyclic_machdep_init(void) { - /* Default the resolution. */ - resolution = ticks * 1000000; - /* * Add a software interrupt handlers for low priority cyclic * events. @@ -112,8 +108,11 @@ swi_add(&clk_intr_event, "lock cyclic", cyclic_swi_lock, NULL, SWI_TQ_FAST, 0, &cyclic_lock_ih); - /* Register the cyclic backend. */ - cyclic_init(&be, resolution); + /* + * Register the cyclic backend. Note that the resolution argument + * is only used on Solaris, so we don't bother with that. + */ + cyclic_init(&be, 0); } static void