yosemite4: Remove reboot target for CPU critical high
so far, CPU utilization of yosemite4 sometimes over 90%,
To avoid bmc reboot, remove reboot target.
Tested:
- bmc stay idleed when CPU utilization over 90%
Change-Id: Ic9c375e6a9964072cfae609e31901152ff029103
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
diff --git a/meta-facebook/meta-yosemite4/recipes-phosphor/health/files/bmc_health_config.json b/meta-facebook/meta-yosemite4/recipes-phosphor/health/files/bmc_health_config.json
new file mode 100644
index 0000000..8f223a1
--- /dev/null
+++ b/meta-facebook/meta-yosemite4/recipes-phosphor/health/files/bmc_health_config.json
@@ -0,0 +1,60 @@
+{
+ "CPU" : {
+ "Frequency" : 1,
+ "Window_size": 120,
+ "Threshold":
+ {
+ "Critical":
+ {
+ "Value": "CPU_CRIT_VAL",
+ "Log": true,
+ "Target": ""
+ },
+ "Warning":
+ {
+ "Value": "CPU_WARN_VAL",
+ "Log": true,
+ "Target": "CPU_WARN_TGT"
+ }
+ }
+ },
+ "Memory" : {
+ "Frequency" : 1,
+ "Window_size": 120,
+ "Threshold":
+ {
+ "Critical":
+ {
+ "Value": "MEM_CRIT_VAL",
+ "Log": true,
+ "Target": "MEM_CRIT_TGT"
+ },
+ "Warning":
+ {
+ "Value": "MEM_WARN_VAL",
+ "Log": true,
+ "Target": "MEM_WARN_TGT"
+ }
+ }
+ },
+ "Storage_RW" : {
+ "Path" : "/run/initramfs/rw",
+ "Frequency" : 1,
+ "Window_size": 120,
+ "Threshold":
+ {
+ "Critical":
+ {
+ "Value": "STORAGE_CRIT_VAL",
+ "Log": true,
+ "Target": "STORAGE_CRIT_TGT"
+ },
+ "Warning":
+ {
+ "Value": "STORAGE_WARN_VAL",
+ "Log": true,
+ "Target": "STORAGE_WARN_TGT"
+ }
+ }
+ }
+}
diff --git a/meta-facebook/meta-yosemite4/recipes-phosphor/health/phosphor-health-monitor_%.bbappend b/meta-facebook/meta-yosemite4/recipes-phosphor/health/phosphor-health-monitor_%.bbappend
new file mode 100644
index 0000000..f8b0e4b
--- /dev/null
+++ b/meta-facebook/meta-yosemite4/recipes-phosphor/health/phosphor-health-monitor_%.bbappend
@@ -0,0 +1,7 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
+SRC_URI:append = " file://bmc_health_config.json \
+ "
+
+do_install:append:yosemite4() {
+ install -m 0644 ${WORKDIR}/bmc_health_config.json ${D}${sysconfdir}/healthMon
+}