m68k: Remove big kernel lock in cache flush code
Geert Uytterhoeven
maintainerPATCH 1/1 m68k: Remove big kernel lock in cache flush code
The cache flush code doesn't need a lock, so we can remove the use of the BKL.
Signed-off-by Geert Uytterhoeven <[email protected]>
Reported-by Arnd Bergmann <[email protected]>
Suggested-by Andreas Schwab <[email protected]>
--- arch/m68k/kernel/sys_m68k.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
arch/m68k/kernel/sys_m68k.c +0 -3
@@ -12,7 +12,6 @@#include <linux/mm.h> #include <linux/fs.h> #include <linux/smp.h> -#include <linux/smp_lock.h> #include <linux/sem.h> #include <linux/msg.h> #include <linux/shm.h>
@@ -377,7 +376,6 @@ sys_cacheflush (unsigned long addr, int scope, int cache, unsigned long len)struct vm_area_struct *vma;int ret = -EINVAL ; -lock_kernel ();if (scope <FLUSH_SCOPE_LINE || scope >FLUSH_SCOPE_ALL || cache & ~FLUSH_CACHE_BOTH ) goto out;
@@ -446,7 +444,6 @@ sys_cacheflush (unsigned long addr, int scope, int cache, unsigned long len) } } out: -unlock_kernel ();return ret; }
Signature · 12 lines
1.7.0.4
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds