From df62a033675da4d620731133c0cda1b320adeac8 Mon Sep 17 00:00:00 2001 From: Shilpasri G Bhat Date: Mon, 5 Mar 2018 07:33:08 +0530 Subject: 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 Acked-by: Vaidyanathan Srinivasan Signed-off-by: Stewart Smith --- include/skiboot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/skiboot.h') 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, -- cgit v1.1