summaryrefslogtreecommitdiffstats
path: root/hw/slw.c
diff options
context:
space:
mode:
authorAkshay Adiga <akshay.adiga@linux.vnet.ibm.com>2018-01-04 16:58:02 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2018-01-14 21:05:51 -0600
commit35c66b8ce5a27ad3312806e8bde9148a5e5b5df8 (patch)
tree0fa2f1a9763486ac9fe3a87133716f54eefe8109 /hw/slw.c
parent313ece47903e154e3fc46eb041c75556e6652771 (diff)
downloadblackbird-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.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/hw/slw.c b/hw/slw.c
index fab32a0c..8dd7b939 100644
--- a/hw/slw.c
+++ b/hw/slw.c
@@ -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);
OpenPOWER on IntegriCloud