diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-09-30 01:51:21 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 19:32:29 +0100 |
commit | b288f135872b651ebf6cd1565d0709a5e31997f7 (patch) | |
tree | 4466c2038022d406aa3378ea644e5a7989ec5a08 /arch/mips/sibyte | |
parent | ea3d710fe572f0af4d242701973f7363b2146429 (diff) | |
download | blackbird-op-linux-b288f135872b651ebf6cd1565d0709a5e31997f7.tar.gz blackbird-op-linux-b288f135872b651ebf6cd1565d0709a5e31997f7.zip |
Switch Sibyte profiling driver to ->compat_ioctl
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/sibyte')
-rw-r--r-- | arch/mips/sibyte/sb1250/bcm1250_tbprof.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/arch/mips/sibyte/sb1250/bcm1250_tbprof.c b/arch/mips/sibyte/sb1250/bcm1250_tbprof.c index e4dfeb52dcec..992e0d8dbb67 100644 --- a/arch/mips/sibyte/sb1250/bcm1250_tbprof.c +++ b/arch/mips/sibyte/sb1250/bcm1250_tbprof.c @@ -28,6 +28,7 @@ #include <linux/fs.h> #include <linux/errno.h> #include <linux/reboot.h> +#include <linux/smp_lock.h> #include <linux/wait.h> #include <asm/uaccess.h> #include <asm/io.h> @@ -343,13 +344,13 @@ static ssize_t sbprof_tb_read(struct file *filp, char *buf, return count; } -static int sbprof_tb_ioctl(struct inode *inode, - struct file *filp, - unsigned int command, - unsigned long arg) +static long sbprof_tb_ioctl(struct file *filp, + unsigned int command, + unsigned long arg) { int error = 0; + lock_kernel(); switch (command) { case SBPROF_ZBSTART: error = sbprof_zbprof_start(filp); @@ -368,6 +369,7 @@ static int sbprof_tb_ioctl(struct inode *inode, error = -EINVAL; break; } + unlock_kernel(); return error; } @@ -377,7 +379,8 @@ static struct file_operations sbprof_tb_fops = { .open = sbprof_tb_open, .release = sbprof_tb_release, .read = sbprof_tb_read, - .ioctl = sbprof_tb_ioctl, + .unlocked_ioctl = sbprof_tb_ioctl, + .compat_ioctl = sbprof_tb_ioctl, .mmap = NULL, }; |