<p>Richard Spiegel has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/23575">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">soc/amd/stoneyridge/acpi/sleepstates.asl: Fix guarded code<br><br>Remove #if statement and replace it with if(IS_ENABLED(...)) per coreboot<br>recommendations.<br><br>BUG=b:62200858<br>TEST=Build kahlee.<br><br>Change-Id: I268b228706a625e1415c4f24e808261c279ba41e<br>Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com><br>---<br>M src/soc/amd/stoneyridge/acpi/sleepstates.asl<br>1 file changed, 5 insertions(+), 5 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/75/23575/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/soc/amd/stoneyridge/acpi/sleepstates.asl b/src/soc/amd/stoneyridge/acpi/sleepstates.asl</span><br><span>index 2f36738..bdca91e 100644</span><br><span>--- a/src/soc/amd/stoneyridge/acpi/sleepstates.asl</span><br><span>+++ b/src/soc/amd/stoneyridge/acpi/sleepstates.asl</span><br><span>@@ -3,6 +3,7 @@</span><br><span>  *</span><br><span>  * Copyright (C) 2007-2009 coresystems GmbH</span><br><span>  * Copyright (C) 2011 The ChromiumOS Authors.  All rights reserved.</span><br><span style="color: hsl(120, 100%, 40%);">+ * Copyright (C) 2018 Advanced Micro Devices, Inc.</span><br><span>  *</span><br><span>  * This program is free software; you can redistribute it and/or modify</span><br><span>  * it under the terms of the GNU General Public License as published by</span><br><span>@@ -15,11 +16,10 @@</span><br><span>  */</span><br><span> </span><br><span> /* S1 support: bit 0, S2 Support: bit 1, etc. S0 & S5 assumed */</span><br><span style="color: hsl(0, 100%, 40%);">-#if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME)</span><br><span style="color: hsl(0, 100%, 40%);">-Name (SSFG, 0x0D)</span><br><span style="color: hsl(0, 100%, 40%);">-#else</span><br><span style="color: hsl(0, 100%, 40%);">-Name (SSFG, 0x09)</span><br><span style="color: hsl(0, 100%, 40%);">-#endif</span><br><span style="color: hsl(120, 100%, 40%);">+Name(SSFG, 0x09)</span><br><span style="color: hsl(120, 100%, 40%);">+if (IS_ENABLED(CONFIG_HAVE_ACPI_RESUME)) {</span><br><span style="color: hsl(120, 100%, 40%);">+ Store(0x0D, SSFG)</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span> </span><br><span> /* Supported sleep states: */</span><br><span> Name(\_S0, Package () {0x00, 0x00, 0x00, 0x00} )   /* (S0) - working state */</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/23575">change 23575</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/23575"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I268b228706a625e1415c4f24e808261c279ba41e </div>
<div style="display:none"> Gerrit-Change-Number: 23575 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Richard Spiegel <richard.spiegel@silverbackltd.com> </div>