Skip to content

Commit

Permalink
[PARISC] Remove {,un}lock_kernel from perf ioctl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matthew Wilcox authored and Kyle McMartin committed Jan 23, 2006
1 parent 85509c0 commit a2bb214
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/parisc/kernel/perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -477,8 +476,6 @@ static long perf_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
error = -ENOTTY;
}

unlock_kernel();

return error;
}

Expand Down

0 comments on commit a2bb214

Please sign in to comment.