Commit 4a7e79a7 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Jonathan Corbet

hdpu_cpustate: BKL pushdown

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 742a2fe3
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/smp_lock.h>
#include <linux/miscdevice.h> #include <linux/miscdevice.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
#include <linux/hdpu_features.h> #include <linux/hdpu_features.h>
...@@ -151,7 +152,13 @@ static ssize_t cpustate_write(struct file *file, const char *buf, ...@@ -151,7 +152,13 @@ static ssize_t cpustate_write(struct file *file, const char *buf,
static int cpustate_open(struct inode *inode, struct file *file) static int cpustate_open(struct inode *inode, struct file *file)
{ {
return cpustate_get_ref((file->f_flags & O_EXCL)); int ret;
lock_kernel();
ret = cpustate_get_ref((file->f_flags & O_EXCL));
unlock_kernel();
return ret;
} }
static int cpustate_release(struct inode *inode, struct file *file) static int cpustate_release(struct inode *inode, struct file *file)
......
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