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>
 #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>
        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;
            }
        }
 out:
-       unlock_kernel();
        return ret;
 }