Searched hist:"0 dfabd39d523fc3f6f0f8c441f41c013cc429b52" (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/include/hw/ppc/ |
H A D | spapr_drc.h | diff 0dfabd39d523fc3f6f0f8c441f41c013cc429b52 Wed Jun 07 09:58:32 CDT 2017 David Gibson <david@gibson.dropbear.id.au> spapr: Clean up DRC set_isolation_state() path
There are substantial differences in the various paths through set_isolation_state(), both for setting to ISOLATED versus UNISOLATED state and for logical versus physical DRCs.
So, split the set_isolation_state() method into isolate() and unisolate() methods, and give it different implementations for the two DRC types.
Factor some minimal common checks, including for valid indicator values (which we weren't previously checking) into rtas_set_isolation_state().
Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Greg Kurz <groug@kaod.org> Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_drc.c | diff 0dfabd39d523fc3f6f0f8c441f41c013cc429b52 Wed Jun 07 09:58:32 CDT 2017 David Gibson <david@gibson.dropbear.id.au> spapr: Clean up DRC set_isolation_state() path
There are substantial differences in the various paths through set_isolation_state(), both for setting to ISOLATED versus UNISOLATED state and for logical versus physical DRCs.
So, split the set_isolation_state() method into isolate() and unisolate() methods, and give it different implementations for the two DRC types.
Factor some minimal common checks, including for valid indicator values (which we weren't previously checking) into rtas_set_isolation_state().
Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Greg Kurz <groug@kaod.org> Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
|