From owner-cvs-all@FreeBSD.ORG Sun Dec 31 12:39:10 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 F04DF16A417; Sun, 31 Dec 2006 12:39:10 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id E231013C46C; Sun, 31 Dec 2006 12:39:10 +0000 (UTC) (envelope-from netchild@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 kBVCdA2K058438; Sun, 31 Dec 2006 12:39:10 GMT (envelope-from netchild@repoman.freebsd.org) Received: (from netchild@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kBVCdABj058437; Sun, 31 Dec 2006 12:39:10 GMT (envelope-from netchild) Message-Id: <200612311239.kBVCdABj058437@repoman.freebsd.org> From: Alexander Leidinger Date: Sun, 31 Dec 2006 12:39:10 +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/compat/linux linux_mib.c linux_mib.h linux_misc.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 12:39:11 -0000 netchild 2006-12-31 12:39:10 UTC FreeBSD src repository Modified files: sys/compat/linux linux_mib.c linux_mib.h linux_misc.c Log: MFp4 (111746+): Redo the checking for 2.6 emulation. We now cache the value of use26 and replace calls to linux_get_osrelease() + parsing with a call to linux_use26(). Typical path is lockless now. Pointed out by: kib This allows to ship RELENG_7_0 with a default osrelease of 2.4.2 and the possibility to enable 2.6.x emulation without the possible performance impact of the previous version of the check. Submitted by: rdivacky Revision Changes Path 1.27 +28 -0 src/sys/compat/linux/linux_mib.c 1.10 +2 -0 src/sys/compat/linux/linux_mib.h 1.201 +3 -9 src/sys/compat/linux/linux_misc.c