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
c43ef174
Commit
c43ef174
authored
May 15, 2008
by
Jonathan Corbet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snsc: cdev lock_kernel() pushdown
Signed-off-by:
Jonathan Corbet
<
corbet@lwn.net
>
parent
78a3c3d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
drivers/char/snsc.c
drivers/char/snsc.c
+4
-1
No files found.
drivers/char/snsc.c
View file @
c43ef174
...
...
@@ -21,6 +21,7 @@
#include <linux/poll.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/smp_lock.h>
#include <asm/sn/io.h>
#include <asm/sn/sn_sal.h>
#include <asm/sn/module.h>
...
...
@@ -104,6 +105,7 @@ scdrv_open(struct inode *inode, struct file *file)
file
->
private_data
=
sd
;
/* hook this subchannel up to the system controller interrupt */
lock_kernel
();
rv
=
request_irq
(
SGI_UART_VECTOR
,
scdrv_interrupt
,
IRQF_SHARED
|
IRQF_DISABLED
,
SYSCTL_BASENAME
,
sd
);
...
...
@@ -111,9 +113,10 @@ scdrv_open(struct inode *inode, struct file *file)
ia64_sn_irtr_close
(
sd
->
sd_nasid
,
sd
->
sd_subch
);
kfree
(
sd
);
printk
(
"%s: irq request failed (%d)
\n
"
,
__func__
,
rv
);
unlock_kernel
();
return
-
EBUSY
;
}
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