From: Luca Lizzeri <ll@niche.it>
To: linux-kernel@vger.rutgers.edu
Subject: ppp and parport waitqueue changes for pre-2.3.1
Date: Wed, 12 May 1999 11:02:20 +0200 [thread overview]
Message-ID: <19990512110220.A3085@niche.it> (raw)
Plenty of places (especially sound) are still missing the waitqueue changes.
The ones I made for ppp and parport follow.
Bye,
Luca
diff -ur linux-vanilla/drivers/misc/parport_share.c linux/drivers/misc/parport_share.c
--- linux-vanilla/drivers/misc/parport_share.c Wed May 12 10:49:49 1999
+++ linux/drivers/misc/parport_share.c Wed May 12 10:05:22 1999
@@ -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;
diff -ur linux-vanilla/drivers/net/ppp.c linux/drivers/net/ppp.c
--- linux-vanilla/drivers/net/ppp.c Wed May 12 10:49:36 1999
+++ linux/drivers/net/ppp.c Wed May 12 10:43:59 1999
@@ -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
diff -ur linux-vanilla/include/linux/if_pppvar.h linux/include/linux/if_pppvar.h
--- linux-vanilla/include/linux/if_pppvar.h Wed May 12 10:49:27 1999
+++ linux/include/linux/if_pppvar.h Wed May 12 10:40:16 1999
@@ -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 */
diff -ur linux-vanilla/include/linux/parport.h linux/include/linux/parport.h
--- linux-vanilla/include/linux/parport.h Wed May 12 10:49:27 1999
+++ linux/include/linux/parport.h Wed May 12 10:33:48 1999
@@ -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 majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
reply other threads:[~1999-05-12 17:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19990512110220.A3085@niche.it \
--to=ll@niche.it \
--cc=linux-kernel@vger.rutgers.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).