Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matisse
android_kernel_samsung_matisse
Commits
b6917500
Commit
b6917500
authored
17 years ago
by
Arnd Bergmann
Committed by
Jonathan Corbet
17 years ago
Browse files
Options
Download
Email Patches
Plain Diff
parisc-kernel-perf: BKL pushdown
Signed-off-by:
Arnd Bergmann
<
arnd@arndb.de
>
parent
6044c319
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
arch/parisc/kernel/perf.c
arch/parisc/kernel/perf.c
+4
-0
No files found.
arch/parisc/kernel/perf.c
View file @
b6917500
...
...
@@ -46,6 +46,7 @@
#include <linux/init.h>
#include <linux/proc_fs.h>
#include <linux/miscdevice.h>
#include <linux/smp_lock.h>
#include <linux/spinlock.h>
#include <asm/uaccess.h>
...
...
@@ -260,13 +261,16 @@ printk("Preparing to start counters\n");
*/
static
int
perf_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
lock_kernel
();
spin_lock
(
&
perf_lock
);
if
(
perf_enabled
)
{
spin_unlock
(
&
perf_lock
);
unlock_kernel
();
return
-
EBUSY
;
}
perf_enabled
=
1
;
spin_unlock
(
&
perf_lock
);
unlock_kernel
();
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
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