From owner-freebsd-acpi@FreeBSD.ORG Tue Oct 2 17:18:53 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E22210656B6; Tue, 2 Oct 2012 17:18:53 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout1-b.corp.bf1.yahoo.com (mrout1-b.corp.bf1.yahoo.com [98.139.253.104]) by mx1.freebsd.org (Postfix) with ESMTP id A15948FC1A; Tue, 2 Oct 2012 17:18:52 +0000 (UTC) Received: from [IPv6:::1] (rideseveral.corp.yahoo.com [10.73.160.231]) by mrout1-b.corp.bf1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id q92HIXI1028346; Tue, 2 Oct 2012 10:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1349198314; bh=U30aL2+xNZOPbtnFuzOnw7Lbps+5eJAe3mz/MQRalOU=; h=Subject:From:Reply-To:To:Cc:In-Reply-To:References:Content-Type: Date:Message-ID:Mime-Version:Content-Transfer-Encoding; b=upLZFhJLggiQ6i4UH0xIIylXQEw4fuOeW1j7Q/uLEJEjc6UK501Y5b7gXidjtQQf7 XOodWA9/tUUjJt19mB7fmQQb45fZ/5IcYI8mf2bnqK1u1yCaqLqEaZiDDWtPhCdZJa FRlRmtuP4LNSFHjVLxxg/VwXbFYZNFd6Irjgks8M= From: Sean Bruno To: Andriy Gapon In-Reply-To: <504EDBEB.6010104@FreeBSD.org> References: <504EDBEB.6010104@FreeBSD.org> Content-Type: text/plain; charset="UTF-8" Date: Tue, 02 Oct 2012 10:18:33 -0700 Message-ID: <1349198313.4246.3.camel@powernoodle.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Milter-Version: master.31+4-gbc07cd5+ X-CLX-ID: 198313001 Cc: "freebsd-acpi@freebsd.org" Subject: Re: notify userland about C-state changes X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: sbruno@freebsd.org List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2012 17:18:53 -0000 > The following patch adds only per-CPU notifications. > > acpi_cpu: explicitly notify userland about c-state changes > > diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c > index 82e204a..15201f9 100644 > --- a/sys/dev/acpica/acpi_cpu.c > +++ b/sys/dev/acpica/acpi_cpu.c > @@ -1054,6 +1054,8 @@ acpi_cpu_notify(ACPI_HANDLE h, UINT32 notify, void *context) > ACPI_SERIAL_BEGIN(cpu); > acpi_cpu_set_cx_lowest(sc); > ACPI_SERIAL_END(cpu); > + > + acpi_UserNotify("PROCESSOR", sc->cpu_handle, notify); > } > > static int > So quick question, does this happen a lot on a system with a sporadic workload? Does this introduce overhead to the system to service the notification requests? Sean