From owner-p4-projects@FreeBSD.ORG Sun Jan 29 21:14:02 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id B5F7F16A423; Sun, 29 Jan 2006 21:14:01 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 892EA16A420 for ; Sun, 29 Jan 2006 21:14:01 +0000 (GMT) (envelope-from alc@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 571EE43D46 for ; Sun, 29 Jan 2006 21:14:01 +0000 (GMT) (envelope-from alc@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k0TLE17P001758 for ; Sun, 29 Jan 2006 21:14:01 GMT (envelope-from alc@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k0TLE1s4001753 for perforce@freebsd.org; Sun, 29 Jan 2006 21:14:01 GMT (envelope-from alc@freebsd.org) Date: Sun, 29 Jan 2006 21:14:01 GMT Message-Id: <200601292114.k0TLE1s4001753@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to alc@freebsd.org using -f From: Alan Cox To: Perforce Change Reviews Cc: Subject: PERFORCE change 90646 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: Sun, 29 Jan 2006 21:14:02 -0000 http://perforce.freebsd.org/chv.cgi?CH=90646 Change 90646 by alc@alc_home on 2006/01/29 21:13:50 Eliminate unused code. Affected files ... .. //depot/projects/superpages/src/sys/vm/vm_buddy.c#9 edit .. //depot/projects/superpages/src/sys/vm/vm_buddy.h#7 edit Differences ... ==== //depot/projects/superpages/src/sys/vm/vm_buddy.c#9 (text+ko) ==== @@ -53,30 +53,6 @@ SYSCTL_OID(_vm, OID_AUTO, buddy, CTLTYPE_STRING | CTLFLAG_RD, NULL, 0, sysctl_vm_buddy, "A", "Buddy Info"); -#ifdef PEDANTIC -/* - * not exhaustive... just the ones I've had trouble with - */ -void -buddy_invariants(char *file, int line) -{ - int q, i; - - static int n = 0; - if ((++n)%10000 == 0) printf("=%d=",n/10000); - - for (q=0; qphys_addr + i*PAGE_SIZE); - INVARIANT(!m->reserv || m->flags & PG_CACHE); - } - } - } -} -#endif - /* * */ ==== //depot/projects/superpages/src/sys/vm/vm_buddy.h#7 (text+ko) ==== @@ -1,7 +1,5 @@ /* Buddy Allocator definitions */ -void buddy_invariants(char *, int); - vm_page_t buddy_alloc(int magn, boolean_t prefer_zero); vm_page_t buddy_alloc_locked(int magn, boolean_t prefer_zero); void buddy_free(vm_page_t m, int magn);