Create error log when cores are too hot

Update the witherspoon thermal-policy PDM yaml
to create an error log when more than 3 cores are > 115C.

Change-Id: Icbf9125f922117dfece42f58e22d504fdcb58561
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/meta-witherspoon/recipes-phosphor/fans/witherspoon-thermal-policy/thermal-policy.yaml b/meta-witherspoon/recipes-phosphor/fans/witherspoon-thermal-policy/thermal-policy.yaml
index 185ccef..84b6b9a 100644
--- a/meta-witherspoon/recipes-phosphor/fans/witherspoon-thermal-policy/thermal-policy.yaml
+++ b/meta-witherspoon/recipes-phosphor/fans/witherspoon-thermal-policy/thermal-policy.yaml
@@ -149,6 +149,7 @@
   members:
     - shutdown
     - log
+    - create criticalhigh error
 
 - name: shutdown
   description: >
@@ -174,3 +175,16 @@
   properties: core temp
   severity: ERR
   message: The system is too hot.  Shutting down.
+
+- name: create criticalhigh error
+  description: >
+    'Create a CriticalHigh Error log.'
+  class: callback
+  callback: elog
+  paths: core sensors
+  properties: core temp
+  error: xyz::openbmc_project::Sensor::Threshold::Error::CriticalHigh
+  metadata:
+    - name: xyz::openbmc_project::Sensor::Threshold::CriticalHigh::SENSOR_TYPE
+      value: temperature
+      type: string