[6/9] direct-ctl: Use the EC primary for special wakeups

Message ID 20180927044849.28322-7-benh@kernel.crashing.org
State Under Review
Headers show
Series
  • Initial "big cores" support for POWER9
Related show

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success master/apply_patch Successfully applied

Commit Message

Benjamin Herrenschmidt Sept. 27, 2018, 4:48 a.m.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
 core/direct-controls.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Patch

diff --git a/core/direct-controls.c b/core/direct-controls.c
index 04b93a16..11686faf 100644
--- a/core/direct-controls.c
+++ b/core/direct-controls.c
@@ -550,7 +550,7 @@  static int p9_sreset_thread(struct cpu_thread *cpu)
 
 int dctl_set_special_wakeup(struct cpu_thread *t)
 {
-	struct cpu_thread *c = t->primary;
+	struct cpu_thread *c = t->ec_primary;
 	int rc = OPAL_SUCCESS;
 
 	if (proc_gen != proc_gen_p9 && proc_gen != proc_gen_p8)
@@ -572,7 +572,7 @@  int dctl_set_special_wakeup(struct cpu_thread *t)
 
 int dctl_clear_special_wakeup(struct cpu_thread *t)
 {
-	struct cpu_thread *c = t->primary;
+	struct cpu_thread *c = t->ec_primary;
 	int rc = OPAL_SUCCESS;
 
 	if (proc_gen != proc_gen_p9 && proc_gen != proc_gen_p8)
@@ -597,7 +597,7 @@  out:
 
 int dctl_core_is_gated(struct cpu_thread *t)
 {
-	struct cpu_thread *c = t->primary;
+	struct cpu_thread *c = t->ec_primary;
 	uint32_t chip_id = pir_to_chip_id(c->pir);
 	uint32_t core_id = pir_to_core_id(c->pir);
 	uint32_t sshhyp_addr;
@@ -620,7 +620,7 @@  int dctl_core_is_gated(struct cpu_thread *t)
 
 static int dctl_stop(struct cpu_thread *t)
 {
-	struct cpu_thread *c = t->primary;
+	struct cpu_thread *c = t->ec_primary;
 	int rc;
 
 	if (proc_gen != proc_gen_p9 && proc_gen != proc_gen_p8)
@@ -644,7 +644,7 @@  static int dctl_stop(struct cpu_thread *t)
 
 static int dctl_cont(struct cpu_thread *t)
 {
-	struct cpu_thread *c = t->primary;
+	struct cpu_thread *c = t->ec_primary;
 	int rc;
 
 	if (proc_gen != proc_gen_p9)
@@ -671,7 +671,7 @@  static int dctl_cont(struct cpu_thread *t)
  */
 static int dctl_sreset(struct cpu_thread *t)
 {
-	struct cpu_thread *c = t->primary;
+	struct cpu_thread *c = t->ec_primary;
 	int rc;
 
 	if (proc_gen != proc_gen_p9 && proc_gen != proc_gen_p8)