Updating utils.py to change the critical temperature for x86 platforms

BUG=b:117198080
Branch=None
TEST=Verified 'graphics_GLBench' test

Change-Id: Ib7e938e2f817d0aadb06f5d933e6ac8d450a2b73
Signed-off-by: Pallavi Gulavani <pallavi.gulavani@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/1264240
Commit-Ready: Lenine Ajagappane <leninex.ajagappane@intel.corp-partner.google.com>
Tested-by: Lenine Ajagappane <leninex.ajagappane@intel.corp-partner.google.com>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
diff --git a/client/bin/utils.py b/client/bin/utils.py
index 605f07b..7aea686 100644
--- a/client/bin/utils.py
+++ b/client/bin/utils.py
@@ -1794,12 +1794,17 @@
     paths = _get_hwmon_paths('temp*_crit')
     for path in paths:
         temperature = _get_float_from_file(path, 0, None, None) * 0.001
-        # Today typical for Intel is 98'C to 105'C while ARM is 85'C. Clamp to
-        # the lowest known value.
+        # Today typical for Intel is 98'C to 105'C while ARM is 85'C. Clamp to 98
+        # if Intel device or the lowest known value otherwise.
+        result = utils.system_output('crossystem arch', retain_output=True,
+                                     ignore_status=True)
         if (min_temperature < 60.0) or min_temperature > 150.0:
-            logging.warning('Critical temperature of %.1fC was reset to 85.0C.',
+            if 'x86' in result:
+                min_temperature = 98.0
+            else:
+                min_temperature = 85.0
+            logging.warning('Critical temperature was reset to %.1fC.',
                             min_temperature)
-            min_temperature = 85.0
 
         min_temperature = min(temperature, min_temperature)
     return min_temperature