diff options
author | Akshay Adiga <akshay.adiga@linux.vnet.ibm.com> | 2018-01-04 16:58:02 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-01-14 21:05:51 -0600 |
commit | 35c66b8ce5a27ad3312806e8bde9148a5e5b5df8 (patch) | |
tree | 0fa2f1a9763486ac9fe3a87133716f54eefe8109 /hw/slw.c | |
parent | 313ece47903e154e3fc46eb041c75556e6652771 (diff) | |
download | blackbird-skiboot-35c66b8ce5a27ad3312806e8bde9148a5e5b5df8.tar.gz blackbird-skiboot-35c66b8ce5a27ad3312806e8bde9148a5e5b5df8.zip |
SLW: Move MAMBO simulator checks to slw_init
Move MAMBO simulator checks to slw_init.
Signed-off-by: Akshay Adiga <akshay.adiga@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/slw.c')
-rw-r--r-- | hw/slw.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -292,11 +292,6 @@ static bool slw_set_overrides_p9(struct proc_chip *chip, struct cpu_thread *c) int rc; uint32_t core = pir_to_core_id(c->pir); - /* MAMBO does not require this init */ - if (proc_chip_quirks & QUIRK_MAMBO_CALLOUTS) { - return true; - } - /* Clear special wakeup bits that could hold power mgt */ rc = xscom_write(chip->id, XSCOM_ADDR_P9_EC_SLAVE(core, EC_PPM_SPECIAL_WKUP_HYP), @@ -947,8 +942,6 @@ void add_cpu_idle_state_properties(void) nr_states = ARRAY_SIZE(power7_cpu_idle_states); } - if (proc_chip_quirks & QUIRK_MAMBO_CALLOUTS) - wakeup_engine_state = WAKEUP_ENGINE_NOT_PRESENT; /* * Currently we can't append strings and cells to dt properties. @@ -1711,6 +1704,8 @@ void slw_init(void) { struct proc_chip *chip; + if (proc_chip_quirks & QUIRK_MAMBO_CALLOUTS) + wakeup_engine_state = WAKEUP_ENGINE_NOT_PRESENT; if (proc_gen == proc_gen_p8) { for_each_chip(chip) { slw_init_chip_p8(chip); |