Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
b6e47e97
Commit
b6e47e97
authored
Jul 28, 2009
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: ppp_async: Convert to anon_semaphore
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
d41f9a85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/net/ppp_async.c
drivers/net/ppp_async.c
+4
-4
No files found.
drivers/net/ppp_async.c
View file @
b6e47e97
...
...
@@ -67,7 +67,7 @@ struct asyncppp {
struct
tasklet_struct
tsk
;
atomic_t
refcnt
;
struct
semaphore
dead_sem
;
struct
anon_
semaphore
dead_sem
;
struct
ppp_channel
chan
;
/* interface to generic ppp layer */
unsigned
char
obuf
[
OBUFSIZE
];
};
...
...
@@ -145,7 +145,7 @@ static struct asyncppp *ap_get(struct tty_struct *tty)
static
void
ap_put
(
struct
asyncppp
*
ap
)
{
if
(
atomic_dec_and_test
(
&
ap
->
refcnt
))
up
(
&
ap
->
dead_sem
);
anon_
up
(
&
ap
->
dead_sem
);
}
/*
...
...
@@ -183,7 +183,7 @@ ppp_asynctty_open(struct tty_struct *tty)
tasklet_init
(
&
ap
->
tsk
,
ppp_async_process
,
(
unsigned
long
)
ap
);
atomic_set
(
&
ap
->
refcnt
,
1
);
semaphore_init_locked
(
&
ap
->
dead_sem
);
anon_
semaphore_init_locked
(
&
ap
->
dead_sem
);
ap
->
chan
.
private
=
ap
;
ap
->
chan
.
ops
=
&
async_ops
;
...
...
@@ -232,7 +232,7 @@ ppp_asynctty_close(struct tty_struct *tty)
* by the time it returns.
*/
if
(
!
atomic_dec_and_test
(
&
ap
->
refcnt
))
down
(
&
ap
->
dead_sem
);
anon_
down
(
&
ap
->
dead_sem
);
tasklet_kill
(
&
ap
->
tsk
);
ppp_unregister_channel
(
&
ap
->
chan
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment