summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/acpi/method-customizing.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/acpi/method-customizing.txt b/Documentation/acpi/method-customizing.txt
index a3f598e141f2..7235da975f23 100644
--- a/Documentation/acpi/method-customizing.txt
+++ b/Documentation/acpi/method-customizing.txt
@@ -16,7 +16,8 @@ control method rather than override the entire DSDT, because kernel
16rebuild/reboot is not needed and test result can be got in minutes. 16rebuild/reboot is not needed and test result can be got in minutes.
17 17
18Note: Only ACPI METHOD can be overridden, any other object types like 18Note: Only ACPI METHOD can be overridden, any other object types like
19 "Device", "OperationRegion", are not recognized. 19 "Device", "OperationRegion", are not recognized. Methods
20 declared inside scope operators are also not supported.
20Note: The same ACPI control method can be overridden for many times, 21Note: The same ACPI control method can be overridden for many times,
21 and it's always the latest one that used by Linux/kernel. 22 and it's always the latest one that used by Linux/kernel.
22Note: To get the ACPI debug object output (Store (AAAA, Debug)), 23Note: To get the ACPI debug object output (Store (AAAA, Debug)),
@@ -32,8 +33,6 @@ Note: To get the ACPI debug object output (Store (AAAA, Debug)),
32 33
33 DefinitionBlock ("", "SSDT", 1, "", "", 0x20080715) 34 DefinitionBlock ("", "SSDT", 1, "", "", 0x20080715)
34 { 35 {
35 External (ACON)
36
37 Method (\_SB_.AC._PSR, 0, NotSerialized) 36 Method (\_SB_.AC._PSR, 0, NotSerialized)
38 { 37 {
39 Store ("In AC _PSR", Debug) 38 Store ("In AC _PSR", Debug)
@@ -42,9 +41,10 @@ Note: To get the ACPI debug object output (Store (AAAA, Debug)),
42 } 41 }
43 Note that the full pathname of the method in ACPI namespace 42 Note that the full pathname of the method in ACPI namespace
44 should be used. 43 should be used.
45 And remember to use "External" to declare external objects.
46 e) assemble the file to generate the AML code of the method. 44 e) assemble the file to generate the AML code of the method.
47 e.g. "iasl psr.asl" (psr.aml is generated as a result) 45 e.g. "iasl -vw 6084 psr.asl" (psr.aml is generated as a result)
46 If parameter "-vw 6084" is not supported by your iASL compiler,
47 please try a newer version.
48 f) mount debugfs by "mount -t debugfs none /sys/kernel/debug" 48 f) mount debugfs by "mount -t debugfs none /sys/kernel/debug"
49 g) override the old method via the debugfs by running 49 g) override the old method via the debugfs by running
50 "cat /tmp/psr.aml > /sys/kernel/debug/acpi/custom_method" 50 "cat /tmp/psr.aml > /sys/kernel/debug/acpi/custom_method"