Skip to content

Commit a2bb214

Browse files
Matthew WilcoxKyle McMartin
authored andcommitted
[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>
1 parent 85509c0 commit a2bb214

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎arch/parisc/kernel/perf.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,6 @@ static long perf_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
444444
uint32_t raddr[4];
445445
int error = 0;
446446

447-
lock_kernel();
448447
switch (cmd) {
449448

450449
case PA_PERF_ON:
@@ -477,8 +476,6 @@ static long perf_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
477476
error = -ENOTTY;
478477
}
479478

480-
unlock_kernel();
481-
482479
return error;
483480
}
484481

0 commit comments

Comments
 (0)