summaryrefslogtreecommitdiffstats
path: root/arch/parisc/kernel/perf.c
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@parisc-linux.org>2006-01-17 19:43:48 +0100
committerKyle McMartin <kyle@duet.int.mcmartin.ca>2006-01-23 02:26:52 +0100
commita2bb214dcd1db862fdb6421e21f1cff0c3535162 (patch)
tree9b02ac6c10ebe82d47fbffc8b990808fa8919274 /arch/parisc/kernel/perf.c
parent[PARISC] Add chassis_power_off routine (diff)
downloadlinux-a2bb214dcd1db862fdb6421e21f1cff0c3535162.tar.xz
linux-a2bb214dcd1db862fdb6421e21f1cff0c3535162.zip
[PARISC] Remove {,un}lock_kernel from perf ioctl
Remove the lock_kernel/unlock_kernel pair in the ioctl method. It plainly wasn't protecting anything. Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Diffstat (limited to 'arch/parisc/kernel/perf.c')
-rw-r--r--arch/parisc/kernel/perf.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/parisc/kernel/perf.c b/arch/parisc/kernel/perf.c
index 11178ccbb89a..53f861c82f93 100644
--- a/arch/parisc/kernel/perf.c
+++ b/arch/parisc/kernel/perf.c
@@ -444,7 +444,6 @@ static long perf_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
uint32_t raddr[4];
int error = 0;
- lock_kernel();
switch (cmd) {
case PA_PERF_ON:
@@ -477,8 +476,6 @@ static long perf_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
error = -ENOTTY;
}
- unlock_kernel();
-
return error;
}