Commit 12e750d956eec8b1778679aff705f617095c46c8

Authored by Arnd Bergmann
Committed by Matt Turner
1 parent b97f897d60

alpha: kill big kernel lock

All uses of the BKL on alpha are totally bogus, nothing
is really protected by this. Remove the remaining users
so we don't have to mark alpha as 'depends on BKL'.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: linux-alpha@vger.kernel.org
Signed-off-by: Matt Turner <mattst88@gmail.com>

Showing 2 changed files with 0 additions and 8 deletions Side-by-side Diff

arch/alpha/kernel/osf_sys.c
... ... @@ -15,7 +15,6 @@
15 15 #include <linux/kernel.h>
16 16 #include <linux/mm.h>
17 17 #include <linux/smp.h>
18   -#include <linux/smp_lock.h>
19 18 #include <linux/stddef.h>
20 19 #include <linux/syscalls.h>
21 20 #include <linux/unistd.h>
... ... @@ -69,7 +68,6 @@
69 68 {
70 69 struct mm_struct *mm;
71 70  
72   - lock_kernel();
73 71 mm = current->mm;
74 72 mm->end_code = bss_start + bss_len;
75 73 mm->start_brk = bss_start + bss_len;
... ... @@ -78,7 +76,6 @@
78 76 printk("set_program_attributes(%lx %lx %lx %lx)\n",
79 77 text_start, text_len, bss_start, bss_len);
80 78 #endif
81   - unlock_kernel();
82 79 return 0;
83 80 }
84 81  
... ... @@ -517,7 +514,6 @@
517 514 long error;
518 515 int __user *min_buf_size_ptr;
519 516  
520   - lock_kernel();
521 517 switch (code) {
522 518 case PL_SET:
523 519 if (get_user(error, &args->set.nbytes))
... ... @@ -547,7 +543,6 @@
547 543 error = -EOPNOTSUPP;
548 544 break;
549 545 };
550   - unlock_kernel();
551 546 return error;
552 547 }
553 548  
arch/alpha/kernel/traps.c
... ... @@ -13,7 +13,6 @@
13 13 #include <linux/sched.h>
14 14 #include <linux/tty.h>
15 15 #include <linux/delay.h>
16   -#include <linux/smp_lock.h>
17 16 #include <linux/module.h>
18 17 #include <linux/init.h>
19 18 #include <linux/kallsyms.h>
... ... @@ -623,7 +622,6 @@
623 622 return;
624 623 }
625 624  
626   - lock_kernel();
627 625 printk("Bad unaligned kernel access at %016lx: %p %lx %lu\n",
628 626 pc, va, opcode, reg);
629 627 do_exit(SIGSEGV);
... ... @@ -646,7 +644,6 @@
646 644 * Yikes! No one to forward the exception to.
647 645 * Since the registers are in a weird format, dump them ourselves.
648 646 */
649   - lock_kernel();
650 647  
651 648 printk("%s(%d): unhandled unaligned exception\n",
652 649 current->comm, task_pid_nr(current));