mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
aux/acpi: no need for amlval(), amleval() will dereference the name and run the method
This commit is contained in:
parent
0b84975050
commit
5aa902c953
1 changed files with 2 additions and 2 deletions
|
@ -310,10 +310,10 @@ poweroff(void)
|
|||
/* The ACPI spec requires we call _TTS and _PTS to prepare
|
||||
* the system to go to _S5 state. If they fail, too bad,
|
||||
* try to go to _S5 state anyway. */
|
||||
pts = amlval(amlwalk(amlroot, "_PTS"));
|
||||
tts = amlval(amlwalk(amlroot, "_TTS"));
|
||||
pts = amlwalk(amlroot, "_PTS");
|
||||
if(pts)
|
||||
amleval(pts, "i", 5, nil);
|
||||
tts = amlwalk(amlroot, "_TTS");
|
||||
if(tts)
|
||||
amleval(tts, "i", 5, nil);
|
||||
|
||||
|
|
Loading…
Reference in a new issue