From owner-freebsd-acpi@FreeBSD.ORG Sat Jun 5 00:09:17 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0822716A4CE for ; Sat, 5 Jun 2004 00:09:17 -0700 (PDT) Received: from root.org (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 2F59843D1D for ; Sat, 5 Jun 2004 00:09:15 -0700 (PDT) (envelope-from nate@root.org) Received: (qmail 54920 invoked by uid 1000); 5 Jun 2004 07:08:26 -0000 Date: Sat, 5 Jun 2004 00:08:26 -0700 (PDT) From: Nate Lawson To: current@freebsd.org Message-ID: <20040605000546.O54841@root.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: acpi@freebsd.org Subject: cvs commit: src/sys/dev/acpica acpi_cpu.c src/share/man/man4 acpi.4 (fwd) X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 07:09:17 -0000 Reboots should continue to work and Cx idling should work the same. Please test. This patch finishes the job of not being affected by interrupt preemption. Thanks to jhb@ for tracking down the original problem. -Nate ---------- Forwarded message ---------- njl 2004/06/05 07:02:18 GMT FreeBSD src repository Modified files: sys/dev/acpica acpi_cpu.c share/man/man4 acpi.4 Log: Rework acpi_cpu_idle() to select the next idle state before sleeping, not after. Unify the paths for all Cx states. Remove cpu_idle_busy and instead do the little profiling we need before re-enabling interrupts. Use 1 quantum as estimate for C1 sleep duration since the timer interrupt is the main reason we wake. While here, change the cx_history sysctl to cx_usage and report statistics for which idle states were used in terms of percent. This seems more intuitive than counters. Remove the cx_stats structure since it's no longer used. Update the man page. Change various types which do not need explicit size. Revision Changes Path 1.35 +4 -5 src/share/man/man4/acpi.4 1.39 +79 -110 src/sys/dev/acpica/acpi_cpu.c