diff options
author | Nikanth Karthikesan <knikanth@suse.de> | 2008-01-30 07:32:59 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:32:59 -0500 |
commit | c68461b67d97739707b3fc57618f22091791f2af (patch) | |
tree | 2e7a67df5f33a0472803b9da373450725fcdf0f8 | |
parent | f29192320f22f1617d50a9c790862603eeef64e6 (diff) |
x86: change x86 machine check handler to use unlocked_ioctl instead
The machine check handler registers ioctl handler that is called
with the BKL held. Changing to register unlocked_ioctl instead.
Also mce ioctl handler does not seem to need any lock protection.
To: Andi Kleen <andi@firstfloor.org>
Cc: linux-kernel@vger.kernel.org
Cc: kernel-janitors@vger.kernel.org
Change the Machine check handler to use unlocked_ioctl instead of
ioctl handler. Also the mce ioctl handler does not need any lock
protection.
Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce_64.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce_64.c b/arch/x86/kernel/cpu/mcheck/mce_64.c index bc6e35153d83..98b23d55fe6e 100644 --- a/arch/x86/kernel/cpu/mcheck/mce_64.c +++ b/arch/x86/kernel/cpu/mcheck/mce_64.c | |||
@@ -634,8 +634,7 @@ static unsigned int mce_poll(struct file *file, poll_table *wait) | |||
634 | return 0; | 634 | return 0; |
635 | } | 635 | } |
636 | 636 | ||
637 | static int mce_ioctl(struct inode *i, struct file *f,unsigned int cmd, | 637 | static long mce_ioctl(struct file *f, unsigned int cmd, unsigned long arg) |
638 | unsigned long arg) | ||
639 | { | 638 | { |
640 | int __user *p = (int __user *)arg; | 639 | int __user *p = (int __user *)arg; |
641 | 640 | ||
@@ -664,7 +663,7 @@ static const struct file_operations mce_chrdev_ops = { | |||
664 | .release = mce_release, | 663 | .release = mce_release, |
665 | .read = mce_read, | 664 | .read = mce_read, |
666 | .poll = mce_poll, | 665 | .poll = mce_poll, |
667 | .ioctl = mce_ioctl, | 666 | .unlocked_ioctl = mce_ioctl, |
668 | }; | 667 | }; |
669 | 668 | ||
670 | static struct miscdevice mce_log_device = { | 669 | static struct miscdevice mce_log_device = { |