Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FPGA Configuration Space
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FPGA Configuration Space
Commits
3e5927bb
Commit
3e5927bb
authored
May 09, 2012
by
Wesley W. Terpstra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce the size of the critical section.
parent
cb42ecfe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wishbone.c
driver/wishbone.c
+4
-4
No files found.
driver/wishbone.c
View file @
3e5927bb
...
...
@@ -220,12 +220,12 @@ static ssize_t char_aio_read(struct kiocb *iocb, const struct iovec *iov, unsign
}
context
->
sent
=
RING_POS
(
context
->
sent
+
len
);
mutex_unlock
(
&
context
->
mutex
);
/* Wake-up polling descriptors */
wake_up_interruptible
(
&
context
->
waitq
);
kill_fasync
(
&
context
->
fasync
,
SIGIO
,
POLL_OUT
);
mutex_unlock
(
&
context
->
mutex
);
if
(
len
==
0
&&
(
filep
->
f_flags
&
O_NONBLOCK
)
!=
0
)
return
-
EAGAIN
;
...
...
@@ -260,12 +260,12 @@ static ssize_t char_aio_write(struct kiocb *iocb, const struct iovec *iov, unsig
/* Process buffers */
etherbone_process
(
context
);
mutex_unlock
(
&
context
->
mutex
);
/* Wake-up polling descriptors */
wake_up_interruptible
(
&
context
->
waitq
);
kill_fasync
(
&
context
->
fasync
,
SIGIO
,
POLL_IN
);
mutex_unlock
(
&
context
->
mutex
);
if
(
len
==
0
&&
(
filep
->
f_flags
&
O_NONBLOCK
)
!=
0
)
return
-
EAGAIN
;
...
...
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