powerpc/eeh: Cleanup eeh_pe_state_mark()
Currently, eeh_pe_state_mark() marks a PE (and it's children) with a state and then performs additional processing if that state included EEH_PE_ISOLATED. The state parameter is always a constant at the call site, so rearrange eeh_pe_state_mark() into two functions and just call the appropriate one at each site. Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
eed4bdbeec
commit
e762bb891a
@@ -736,7 +736,7 @@ static irqreturn_t pnv_php_interrupt(int irq, void *data)
|
||||
pe = edev ? edev->pe : NULL;
|
||||
if (pe) {
|
||||
eeh_serialize_lock(&flags);
|
||||
eeh_pe_state_mark(pe, EEH_PE_ISOLATED);
|
||||
eeh_pe_mark_isolated(pe);
|
||||
eeh_serialize_unlock(flags);
|
||||
eeh_pe_set_option(pe, EEH_OPT_FREEZE_PE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user