notify userland about C-state changes

Sean Bruno seanbru at yahoo-inc.com
Tue Oct 2 17:18:53 UTC 2012


> 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



More information about the freebsd-acpi mailing list