Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35066c0d authored by Gavin Shan's avatar Gavin Shan Committed by Michael Ellerman
Browse files

powerpc/eeh: Export confirm_error_lock



This exports @confirm_error_lock so that eeh_serialize_{lock, unlock}()
can be used to freeze the affected PE in PCI surprise hot remove path.

Signed-off-by: default avatarGavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent de5a6622
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -116,6 +116,7 @@ struct eeh_ops *eeh_ops = NULL;


/* Lock to avoid races due to multiple reports of an error */
/* Lock to avoid races due to multiple reports of an error */
DEFINE_RAW_SPINLOCK(confirm_error_lock);
DEFINE_RAW_SPINLOCK(confirm_error_lock);
EXPORT_SYMBOL_GPL(confirm_error_lock);


/* Lock to protect passed flags */
/* Lock to protect passed flags */
static DEFINE_MUTEX(eeh_dev_mutex);
static DEFINE_MUTEX(eeh_dev_mutex);