public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] syncppp.c 2.5.41
@ 2002-10-10 19:17 Paul Fulghum
  0 siblings, 0 replies; only message in thread
From: Paul Fulghum @ 2002-10-10 19:17 UTC (permalink / raw)
  To: davej@suse.de; +Cc: linux-kernel@vger.kernel.org

* 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)




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-10 19:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-10 19:17 [PATCH] syncppp.c 2.5.41 Paul Fulghum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox