diff options
author | Sam Bobroff <sbobroff@linux.ibm.com> | 2018-09-11 21:23:31 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-10-13 07:21:25 -0400 |
commit | e762bb891a294af00b83f54062dae4e24565edf8 (patch) | |
tree | fea29a58bb89668f7d6e86b60d6f875de11b4728 /drivers/pci/hotplug | |
parent | eed4bdbeecd0b59d3e487d1a2b726d51810015ab (diff) |
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>
Diffstat (limited to 'drivers/pci/hotplug')
-rw-r--r-- | drivers/pci/hotplug/pnv_php.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/pnv_php.c b/drivers/pci/hotplug/pnv_php.c index 3276a5e4c430..b5ba26d14a9a 100644 --- a/drivers/pci/hotplug/pnv_php.c +++ b/drivers/pci/hotplug/pnv_php.c | |||
@@ -736,7 +736,7 @@ static irqreturn_t pnv_php_interrupt(int irq, void *data) | |||
736 | pe = edev ? edev->pe : NULL; | 736 | pe = edev ? edev->pe : NULL; |
737 | if (pe) { | 737 | if (pe) { |
738 | eeh_serialize_lock(&flags); | 738 | eeh_serialize_lock(&flags); |
739 | eeh_pe_state_mark(pe, EEH_PE_ISOLATED); | 739 | eeh_pe_mark_isolated(pe); |
740 | eeh_serialize_unlock(flags); | 740 | eeh_serialize_unlock(flags); |
741 | eeh_pe_set_option(pe, EEH_OPT_FREEZE_PE); | 741 | eeh_pe_set_option(pe, EEH_OPT_FREEZE_PE); |
742 | } | 742 | } |