Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
f8f2c79d
Commit
f8f2c79d
authored
May 20, 2008
by
Arnd Bergmann
Committed by
Jonathan Corbet
Jul 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sonypi: BKL pushdown
Signed-off-by:
Arnd Bergmann
<
arnd@arndb.de
>
parent
0410e689
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
drivers/char/sonypi.c
drivers/char/sonypi.c
+3
-0
No files found.
drivers/char/sonypi.c
View file @
f8f2c79d
...
...
@@ -49,6 +49,7 @@
#include <linux/err.h>
#include <linux/kfifo.h>
#include <linux/platform_device.h>
#include <linux/smp_lock.h>
#include <asm/uaccess.h>
#include <asm/io.h>
...
...
@@ -906,12 +907,14 @@ static int sonypi_misc_release(struct inode *inode, struct file *file)
static
int
sonypi_misc_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
lock_kernel
();
mutex_lock
(
&
sonypi_device
.
lock
);
/* Flush input queue on first open */
if
(
!
sonypi_device
.
open_count
)
kfifo_reset
(
sonypi_device
.
fifo
);
sonypi_device
.
open_count
++
;
mutex_unlock
(
&
sonypi_device
.
lock
);
unlock_kernel
();
return
0
;
}
...
...
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