Commit 29f367bf authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Frederic Weisbecker

ia64/perfmon: Convert to unlocked_ioctl

The ioctl function in this driver does not
do anything that requires the BKL, so make
it use unlocked_ioctl.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: linux-ia64@vger.kernel.org
Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
parent d5724956
...@@ -1696,8 +1696,8 @@ pfm_poll(struct file *filp, poll_table * wait) ...@@ -1696,8 +1696,8 @@ pfm_poll(struct file *filp, poll_table * wait)
return mask; return mask;
} }
static int static long
pfm_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) pfm_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
{ {
DPRINT(("pfm_ioctl called\n")); DPRINT(("pfm_ioctl called\n"));
return -EINVAL; return -EINVAL;
...@@ -2178,7 +2178,7 @@ static const struct file_operations pfm_file_ops = { ...@@ -2178,7 +2178,7 @@ static const struct file_operations pfm_file_ops = {
.read = pfm_read, .read = pfm_read,
.write = pfm_write, .write = pfm_write,
.poll = pfm_poll, .poll = pfm_poll,
.ioctl = pfm_ioctl, .unlocked_ioctl = pfm_ioctl,
.open = pfm_no_open, /* special open code to disallow open via /proc */ .open = pfm_no_open, /* special open code to disallow open via /proc */
.fasync = pfm_fasync, .fasync = pfm_fasync,
.release = pfm_close, .release = pfm_close,
......
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