amd76x_pm for 2.5.73
PATCH 1/1 amd76x_pm for 2.5.73
Attached patch was modified to apply onto 2.5.73.
Driver was also moved to ACPI directory (from char), configuration option is under ACPI as well.
There is sysfs interface for tuning and statistics reading, data can be acquired from files:
/sys/devices/pci0/0000:00:00.0/C2_cnt and lazy_write, of which lazy_write is writable and contains number of consecutive calls before C2 droop.
drivers/acpi/Kconfig +17 -1
@@ -236,5 +236,21 @@ depends on IA64 && (!IA64_HP_SIM || IA64_SGI_SN) default y -endmenu +config AMD76X_PM + tristate "AMD76x Native Power Management support" + default n + depends on X86 && PCI + ---help--- + This driver enables Power Management on AMD760MP & AMD760MPX chipsets. + This is about same as ACPI C2, except that ACPI folks don't do SMP ATM. + In /sys/devices/pci0/0000:00:00.0/ is a statistics C2_cnt + (RO) and lazy_idle (RW) file. + + To compile this driver as a module ( = code which can be inserted in + and removed from the running kernel whenever you want), say M here + and read <file:Documentation/modules.txt>. The module will be called + amd76x_pm. + If unsure, say N. + +endmenu
drivers/acpi/Makefile +5 -0
@@ -47,3 +47,8 @@ obj-$(CONFIG_ACPI_ASUS) += asus_acpi.o obj-$(CONFIG_ACPI_TOSHIBA) += toshiba_acpi.o obj-$(CONFIG_ACPI_BUS) += scan.o + +# +# not really ACPI thing, until they handle SMP. +# +obj-$(CONFIG_AMD76X_PM) += amd76x_pm.o
drivers/acpi/amd76x_pm.c +705 -0
705 lines not on this page · raw message
include/linux/amd76x_pm.h +59 -0
59 lines not on this page · raw message
Signature · 1 line
Psi -- <http://iki.fi/psavo>