diff options
author | Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> | 2017-11-20 11:39:37 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-11-20 20:36:07 -0600 |
commit | cbbd16bfbeef40b9f98d9d457fa024a23bfcc23e (patch) | |
tree | 50d77686a5a4f2d7dd22ece23a83464d41e605b0 /core/direct-controls.c | |
parent | 701556d2ea9b890a389183907ae484b78c05c665 (diff) | |
download | skiboot-cbbd16bfbeef40b9f98d9d457fa024a23bfcc23e.zip skiboot-cbbd16bfbeef40b9f98d9d457fa024a23bfcc23e.tar.gz skiboot-cbbd16bfbeef40b9f98d9d457fa024a23bfcc23e.tar.bz2 |
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 'core/direct-controls.c')
-rw-r--r-- | core/direct-controls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/direct-controls.c b/core/direct-controls.c index 512cb36..fcb9350 100644 --- a/core/direct-controls.c +++ b/core/direct-controls.c @@ -220,7 +220,7 @@ static int p9_sreset_thread(struct cpu_thread *cpu) return 0; } -static int dctl_set_special_wakeup(struct cpu_thread *t) +int dctl_set_special_wakeup(struct cpu_thread *t) { struct cpu_thread *c = t->primary; int rc = OPAL_SUCCESS; @@ -238,7 +238,7 @@ static int dctl_set_special_wakeup(struct cpu_thread *t) return rc; } -static int dctl_clear_special_wakeup(struct cpu_thread *t) +int dctl_clear_special_wakeup(struct cpu_thread *t) { struct cpu_thread *c = t->primary; int rc = OPAL_SUCCESS; |