Skip to content

Commit 2f81a18

Browse files
committed
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 <geert@linux-m68k.org> Reported-by: Arnd Bergmann <arnd@arndb.de> Suggested-by: Andreas Schwab <schwab@linux-m68k.org>
1 parent 22e58f9 commit 2f81a18

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎arch/m68k/kernel/sys_m68k.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include <linux/mm.h>
1313
#include <linux/fs.h>
1414
#include <linux/smp.h>
15-
#include <linux/smp_lock.h>
1615
#include <linux/sem.h>
1716
#include <linux/msg.h>
1817
#include <linux/shm.h>
@@ -377,7 +376,6 @@ sys_cacheflush (unsigned long addr, int scope, int cache, unsigned long len)
377376
struct vm_area_struct *vma;
378377
int ret = -EINVAL;
379378

380-
lock_kernel();
381379
if (scope < FLUSH_SCOPE_LINE || scope > FLUSH_SCOPE_ALL ||
382380
cache & ~FLUSH_CACHE_BOTH)
383381
goto out;
@@ -446,7 +444,6 @@ sys_cacheflush (unsigned long addr, int scope, int cache, unsigned long len)
446444
}
447445
}
448446
out:
449-
unlock_kernel();
450447
return ret;
451448
}
452449

0 commit comments

Comments
 (0)