mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
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: Arnd Bergmann <arnd@arndb.de> Cc: Tony Luck <tony.luck@intel.com> Cc: linux-ia64@vger.kernel.org Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
This commit is contained in:
parent
d572495628
commit
29f367bfbf
1 changed files with 11 additions and 11 deletions
|
@ -1696,8 +1696,8 @@ pfm_poll(struct file *filp, poll_table * wait)
|
|||
return mask;
|
||||
}
|
||||
|
||||
static int
|
||||
pfm_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg)
|
||||
static long
|
||||
pfm_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
||||
{
|
||||
DPRINT(("pfm_ioctl called\n"));
|
||||
return -EINVAL;
|
||||
|
@ -2178,7 +2178,7 @@ static const struct file_operations pfm_file_ops = {
|
|||
.read = pfm_read,
|
||||
.write = pfm_write,
|
||||
.poll = pfm_poll,
|
||||
.ioctl = pfm_ioctl,
|
||||
.unlocked_ioctl = pfm_ioctl,
|
||||
.open = pfm_no_open, /* special open code to disallow open via /proc */
|
||||
.fasync = pfm_fasync,
|
||||
.release = pfm_close,
|
||||
|
|
Loading…
Reference in a new issue