|
@@ -27,15 +27,12 @@
|
|
|
* transfers to be queued.
|
|
|
*/
|
|
|
|
|
|
-void bte_error_handler(unsigned long);
|
|
|
-
|
|
|
/*
|
|
|
* Wait until all BTE related CRBs are completed
|
|
|
* and then reset the interfaces.
|
|
|
*/
|
|
|
-int shub1_bte_error_handler(unsigned long _nodepda)
|
|
|
+static int shub1_bte_error_handler(struct nodepda_s *err_nodepda)
|
|
|
{
|
|
|
- struct nodepda_s *err_nodepda = (struct nodepda_s *)_nodepda;
|
|
|
struct timer_list *recovery_timer = &err_nodepda->bte_recovery_timer;
|
|
|
nasid_t nasid;
|
|
|
int i;
|
|
@@ -131,9 +128,8 @@ int shub1_bte_error_handler(unsigned long _nodepda)
|
|
|
* Wait until all BTE related CRBs are completed
|
|
|
* and then reset the interfaces.
|
|
|
*/
|
|
|
-int shub2_bte_error_handler(unsigned long _nodepda)
|
|
|
+static int shub2_bte_error_handler(struct nodepda_s *err_nodepda)
|
|
|
{
|
|
|
- struct nodepda_s *err_nodepda = (struct nodepda_s *)_nodepda;
|
|
|
struct timer_list *recovery_timer = &err_nodepda->bte_recovery_timer;
|
|
|
struct bteinfo_s *bte;
|
|
|
nasid_t nasid;
|
|
@@ -170,9 +166,8 @@ int shub2_bte_error_handler(unsigned long _nodepda)
|
|
|
* Wait until all BTE related CRBs are completed
|
|
|
* and then reset the interfaces.
|
|
|
*/
|
|
|
-void bte_error_handler(unsigned long _nodepda)
|
|
|
+void bte_error_handler(struct nodepda_s *err_nodepda)
|
|
|
{
|
|
|
- struct nodepda_s *err_nodepda = (struct nodepda_s *)_nodepda;
|
|
|
spinlock_t *recovery_lock = &err_nodepda->bte_recovery_lock;
|
|
|
int i;
|
|
|
unsigned long irq_flags;
|
|
@@ -199,12 +194,12 @@ void bte_error_handler(unsigned long _nodepda)
|
|
|
}
|
|
|
|
|
|
if (is_shub1()) {
|
|
|
- if (shub1_bte_error_handler(_nodepda)) {
|
|
|
+ if (shub1_bte_error_handler(err_nodepda)) {
|
|
|
spin_unlock_irqrestore(recovery_lock, irq_flags);
|
|
|
return;
|
|
|
}
|
|
|
} else {
|
|
|
- if (shub2_bte_error_handler(_nodepda)) {
|
|
|
+ if (shub2_bte_error_handler(err_nodepda)) {
|
|
|
spin_unlock_irqrestore(recovery_lock, irq_flags);
|
|
|
return;
|
|
|
}
|
|
@@ -255,6 +250,6 @@ bte_crb_error_handler(cnodeid_t cnode, int btenum,
|
|
|
|
|
|
BTE_PRINTK(("Got an error on cnode %d bte %d: HW error type 0x%x\n",
|
|
|
bte->bte_cnode, bte->bte_num, ioe->ie_errortype));
|
|
|
- bte_error_handler((unsigned long) NODEPDA(cnode));
|
|
|
+ bte_error_handler(NODEPDA(cnode));
|
|
|
}
|
|
|
|