summaryrefslogtreecommitdiffstats
path: root/include/dts.h
diff options
context:
space:
mode:
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>2017-11-20 11:39:37 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-11-20 20:36:07 -0600
commitcbbd16bfbeef40b9f98d9d457fa024a23bfcc23e (patch)
tree50d77686a5a4f2d7dd22ece23a83464d41e605b0 /include/dts.h
parent701556d2ea9b890a389183907ae484b78c05c665 (diff)
downloadblackbird-skiboot-cbbd16bfbeef40b9f98d9d457fa024a23bfcc23e.tar.gz
blackbird-skiboot-cbbd16bfbeef40b9f98d9d457fa024a23bfcc23e.zip
sensors: dts: Assert special wakeup on idle cores while reading temperature
In P9, when a core enters a stop state, its clocks will be stopped to save power and hence we will not be able to perform a scom operation to read the DTS temperature sensor. Hence, assert a special wakeup on cores that have entered a stop state in order to successfully complete the scom operation. Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> [rlippert@google.com: Clear special wakeup only when it succeeds] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/dts.h')
-rw-r--r--include/dts.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dts.h b/include/dts.h
index b37919f6..17e2e15e 100644
--- a/include/dts.h
+++ b/include/dts.h
@@ -19,7 +19,7 @@
#include <stdint.h>
-extern int64_t dts_sensor_read(uint32_t sensor_hndl, uint32_t *sensor_data);
+extern int64_t dts_sensor_read(u32 sensor_hndl, int token, u32 *sensor_data);
extern bool dts_sensor_create_nodes(struct dt_node *sensors);
#endif /* __DTS_H */
OpenPOWER on IntegriCloud