Commit 2f81a184 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

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: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Reported-by: default avatarArnd Bergmann <arnd@arndb.de>
Suggested-by: default avatarAndreas Schwab <schwab@linux-m68k.org>
parent 22e58f9d
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment