From owner-cvs-all@FreeBSD.ORG Sat Jun 2 20:01:42 2007 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 2D6D216A421; Sat, 2 Jun 2007 20:01:42 +0000 (UTC) (envelope-from njl@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 07A3413C45E; Sat, 2 Jun 2007 20:01:42 +0000 (UTC) (envelope-from njl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l52K1f45054979; Sat, 2 Jun 2007 20:01:41 GMT (envelope-from njl@repoman.freebsd.org) Received: (from njl@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l52K1f5T054964; Sat, 2 Jun 2007 20:01:41 GMT (envelope-from njl) Message-Id: <200706022001.l52K1f5T054964@repoman.freebsd.org> From: Nate Lawson Date: Sat, 2 Jun 2007 20:01:41 +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/dev/acpica acpi_cpu.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, 02 Jun 2007 20:01:42 -0000 njl 2007-06-02 20:01:41 UTC FreeBSD src repository Modified files: sys/dev/acpica acpi_cpu.c Log: Fix a bug introduced in the per-CPU Cx states commit. The wrong loop var (j/i) was being used and it was being incremented, not decremented as before. Factor out this code into a common function and call it from both the common and per-CPU case. MFC after: 1 day Revision Changes Path 1.65 +27 -30 src/sys/dev/acpica/acpi_cpu.c