Skip to contentSkip to conversation

ppp and parport waitqueue changes for pre-2.3.1

PATCH Luca Lizzeri 1 participant 1 message May 12, 1999

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Plenty of places (especially sound) are still missing the waitqueue changes.

The ones I made for ppp and parport follow.

Bye,
Luca

drivers/misc/parport_share.c +1 -1
diff -ur linux-vanilla/drivers/misc/parport_share.c linux/drivers/misc/parport_share.c
@@ -277,7 +277,7 @@
 	inc_parport_count();
 	port->ops->inc_use_count();
 
-	init_waitqueue(&tmp->wait_q);
+	init_waitqueue_head(&tmp->wait_q);
 	tmp->timeslice = PARPORT_DEFAULT_TIMESLICE;
 	tmp->waitnext = tmp->waitprev = NULL;
 
drivers/net/ppp.c +1 -1
diff -ur linux-vanilla/drivers/net/ppp.c linux/drivers/net/ppp.c
@@ -2834,7 +2834,7 @@
 	ppp->magic = PPP_MAGIC;
 	ppp->next = NULL;
 	ppp->inuse = 1;
-	ppp->read_wait = NULL;
+	init_waitqueue_head(&ppp->read_wait);
 
 	/*
 	 * Make up a suitable name for this device
include/linux/if_pppvar.h +1 -1
diff -ur linux-vanilla/include/linux/if_pppvar.h linux/include/linux/if_pppvar.h
@@ -109,7 +109,7 @@
 	__u16		rfcs;		/* FCS so far of rpkt		*/
 
 	/* Queues for select() functionality */
-	struct wait_queue *read_wait;	/* queue for reading processes	*/
+	wait_queue_head_t	read_wait;	/* queue for reading processes	*/
 
 	/* info for detecting idle channels */
 	unsigned long	last_xmit;	/* time of last transmission	*/
include/linux/parport.h +1 -1
diff -ur linux-vanilla/include/linux/parport.h linux/include/linux/parport.h
@@ -163,7 +163,7 @@
 	struct pardevice *next;
 	struct pardevice *prev;
 	struct parport_state *state;     /* saved status over preemption */
-	struct wait_queue *wait_q;
+	wait_queue_head_t wait_q;
 	unsigned long int time;
 	unsigned long int timeslice;
 	unsigned int waiting;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/