diff options
author | Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> | 2018-03-05 07:33:08 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-04-19 18:56:06 -0500 |
commit | df62a033675da4d620731133c0cda1b320adeac8 (patch) | |
tree | f99f18b80ae426001bdd33177b64cd65a56d60a8 /include | |
parent | 7d559d19b8151515098109bb5ee149dd810fcafa (diff) | |
download | skiboot-df62a033675da4d620731133c0cda1b320adeac8.zip skiboot-df62a033675da4d620731133c0cda1b320adeac8.tar.gz skiboot-df62a033675da4d620731133c0cda1b320adeac8.tar.bz2 |
sensors: Dont add DTS sensors when OCC inband sensors are available
There are two sets of core temperature sensors today. One is DTS scom
based core temperature sensors and the second group is the sensors
provided by OCC. DTS is the highest temperature among the different
temperature zones in the core while OCC core temperature sensors are
the average temperature of the core. DTS sensors are read directly by
the host by SCOMing the DTS sensors while OCC sensors are read and
updated by OCC to main memory.
Reading DTS sensors by SCOMing is a heavy and slower operation as
compared to reading OCC sensors which is as good as reading memory.
So dont add DTS sensors when OCC sensors are available.
Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Acked-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/skiboot.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/skiboot.h b/include/skiboot.h index 1180a17..601eab0 100644 --- a/include/skiboot.h +++ b/include/skiboot.h @@ -352,7 +352,7 @@ extern int fake_nvram_start_read(void *dst, uint32_t src, uint32_t len); extern int fake_nvram_write(uint32_t offset, void *src, uint32_t size); /* OCC Inband Sensors */ -extern void occ_sensors_init(void); +extern bool occ_sensors_init(void); extern int occ_sensor_read(u32 handle, u64 *data); extern int occ_sensor_group_clear(u32 group_hndl, int token); extern void occ_add_sensor_groups(struct dt_node *sg, u32 *phandles, |