From owner-cvs-all@FreeBSD.ORG Sat Jan 19 15:38:14 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1317216A419; Sat, 19 Jan 2008 15:38:14 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 1315813C44B; Sat, 19 Jan 2008 15:38:14 +0000 (UTC) (envelope-from jhb@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 m0JFcDs3048402; Sat, 19 Jan 2008 15:38:13 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m0JFcDOA048401; Sat, 19 Jan 2008 15:38:13 GMT (envelope-from jhb) Message-Id: <200801191538.m0JFcDOA048401@repoman.freebsd.org> From: John Baldwin Date: Sat, 19 Jan 2008 15:38:13 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/amd64/amd64 intr_machdep.c src/sys/i386/i386 intr_machdep.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: Sat, 19 Jan 2008 15:38:14 -0000 jhb 2008-01-19 15:38:13 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/amd64/amd64 intr_machdep.c sys/i386/i386 intr_machdep.c Log: MFC: Split the intr_table_lock into an sx lock used for most things, and a spin lock to protect intrcnt_index. Originally I had this as a spin lock so interrupt code could use it to lookup sources. However, we don't actually do that because it would add a lot of overhead to interrupts, and if we ever do support removing interrupt sources, we can use other means to safely do so w/o locking in the interrupt handling code. This fixes a LOR in the most recent MSI MFC and was a part of the original commit to HEAD that included the changes in the most recent MSI MFC. Revision Changes Path 1.15.2.6 +24 -21 src/sys/amd64/amd64/intr_machdep.c 1.14.2.6 +24 -21 src/sys/i386/i386/intr_machdep.c