From owner-cvs-all@FreeBSD.ORG Sun Dec 31 20:26:21 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4654916A407; Sun, 31 Dec 2006 20:26:21 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 2052013C442; Sun, 31 Dec 2006 20:26:21 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kBVKQLsG062857; Sun, 31 Dec 2006 20:26:21 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kBVKQKaG062856; Sun, 31 Dec 2006 20:26:20 GMT (envelope-from rwatson) Message-Id: <200612312026.kBVKQKaG062856@repoman.freebsd.org> From: Robert Watson Date: Sun, 31 Dec 2006 20:26:20 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/security/mac mac_framework.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Dec 2006 20:26:21 -0000 rwatson 2006-12-31 20:26:20 UTC FreeBSD src repository Modified files: sys/security/mac mac_framework.c Log: Only signal the CV indicating that the MAC Framework is available for exclusive access if there is at least one thread waiting for it to become available. This may significantly reduce overhead by reducing the number of unnecessary wakeups issued whenever the framework becomes idle. Annotate that we still signal the CV more than necessary and should fix this. Obtained from: TrustedBSD Project Reviewed by: csjp Tested by: csjp Revision Changes Path 1.135 +23 -6 src/sys/security/mac/mac_framework.c