[PATCH phosphor-settingsd] add power policy settings

OpenBMC Patches openbmc-patches at stwcx.xyz
Mon Feb 1 13:50:31 AEDT 2016


From: Norman James <njames at us.ibm.com>

---
 settings.yaml    | 4 ++++
 settings_file.py | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/settings.yaml b/settings.yaml
index 01e7828..200aa86 100644
--- a/settings.yaml
+++ b/settings.yaml
@@ -16,3 +16,7 @@ host:
         name: system_state
         type: s
         default: ""
+    powerpolicy:
+        name: power_policy
+        type: s
+        default: "RESTORE_LAST_STATE"
diff --git a/settings_file.py b/settings_file.py
index 0c4e6cb..3efad0b 100644
--- a/settings_file.py
+++ b/settings_file.py
@@ -1,2 +1,2 @@
 #!/usr/bin/python -u
-SETTINGS={'host': {'bootflags': {'default': 'default', 'type': 's', 'name': 'boot_flags'}, 'powercap': {'name': 'power_cap', 'min': 0, 'default': 0, 'max': 1000, 'type': 'i', 'unit': 'watts'}, 'sysstate': {'default': '', 'type': 's', 'name': 'system_state'}}}
+SETTINGS={'host': {'bootflags': {'default': 'default', 'type': 's', 'name': 'boot_flags'}, 'powerpolicy': {'default': 'RESTORE_LAST_STATE', 'type': 's', 'name': 'power_policy'}, 'powercap': {'name': 'power_cap', 'min': 0, 'default': 0, 'max': 1000, 'type': 'i', 'unit': 'watts'}, 'sysstate': {'default': '', 'type': 's', 'name': 'system_state'}}}
\ No newline at end of file
-- 
2.6.4




More information about the openbmc mailing list