[PATCH] syncppp.c 2.5.41

From: Paul Fulghum (paulkf@microgate.com)
Date: Thu Oct 10 2002 - 14:17:49 EST


* Remove cli()/restore()

Please apply

Paul Fulghum
paulkf@microgate.com

--- linux-2.5.41/drivers/net/wan/syncppp.c Mon Oct 7 13:23:38 2002
+++ linux-2.5.41-mg/drivers/net/wan/syncppp.c Wed Oct 9 15:55:47 2002
@@ -1284,12 +1284,12 @@
 {
         struct sppp *sp = (struct sppp*) arg;
         unsigned long flags;
- save_flags(flags);
- cli();
+
+ spin_lock_irqsave(&spppq_lock, flags);
 
         sp->pp_flags &= ~PP_TIMO;
         if (! (sp->pp_if->flags & IFF_UP) || (sp->pp_flags & PP_CISCO)) {
- restore_flags(flags);
+ spin_unlock_irqrestore(&spppq_lock, flags);
                 return;
         }
         switch (sp->lcp.state) {
@@ -1328,7 +1328,7 @@
                 }
                 break;
         }
- restore_flags(flags);
+ spin_unlock_irqrestore(&spppq_lock, flags);
 }
 
 static char *sppp_lcp_type_name (u8 type)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:38 EST