From owner-cvs-all@FreeBSD.ORG Sun Oct 5 02:35:10 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 61DAA16A4B3; Sun, 5 Oct 2003 02:35:10 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D256743F85; Sun, 5 Oct 2003 02:35:09 -0700 (PDT) (envelope-from bms@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h959Z9XJ091752; Sun, 5 Oct 2003 02:35:09 -0700 (PDT) (envelope-from bms@repoman.freebsd.org) Received: (from bms@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h959Z97C091743; Sun, 5 Oct 2003 02:35:09 -0700 (PDT) (envelope-from bms) Message-Id: <200310050935.h959Z97C091743@repoman.freebsd.org> From: Bruce M Simpson Date: Sun, 5 Oct 2003 02:35:09 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_synch.c src/sys/sys proc.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 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, 05 Oct 2003 09:35:10 -0000 bms 2003/10/05 02:35:09 PDT FreeBSD src repository Modified files: sys/kern kern_synch.c sys/sys proc.h Log: Add a pre-emption counter, td_generation, so that threads can notice when they have been pre-empted by other threads. This is bumped from within mi_switch() every time a context switch takes place. Discussed with: pete Revision Changes Path 1.235 +2 -0 src/sys/kern/kern_synch.c 1.349 +1 -0 src/sys/sys/proc.h