Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198159
b: refs/heads/master
c: 1114b68
h: refs/heads/master
i:
  198157: c4171b8
  198155: 437367d
  198151: a4486a2
  198143: 5c45800
v: v3
  • Loading branch information
Arnd Bergmann authored and Frederic Weisbecker committed May 17, 2010
1 parent 270cb30 commit c02adee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7cc4bcc6f152d365eb27acba5dcb7b38b36b3e50
refs/heads/master: 1114b68468fa2359e15c75f415793b9dd0e5d837
9 changes: 2 additions & 7 deletions trunk/arch/ia64/sn/kernel/sn2/sn_hwperf.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <linux/miscdevice.h>
#include <linux/utsname.h>
#include <linux/cpumask.h>
#include <linux/smp_lock.h>
#include <linux/nodemask.h>
#include <linux/smp.h>
#include <linux/mutex.h>
Expand Down Expand Up @@ -682,8 +681,7 @@ static int sn_hwperf_map_err(int hwperf_err)
/*
* ioctl for "sn_hwperf" misc device
*/
static int
sn_hwperf_ioctl(struct inode *in, struct file *fp, u32 op, unsigned long arg)
static long sn_hwperf_ioctl(struct file *fp, u32 op, unsigned long arg)
{
struct sn_hwperf_ioctl_args a;
struct cpuinfo_ia64 *cdata;
Expand All @@ -699,8 +697,6 @@ sn_hwperf_ioctl(struct inode *in, struct file *fp, u32 op, unsigned long arg)
int i;
int j;

unlock_kernel();

/* only user requests are allowed here */
if ((op & SN_HWPERF_OP_MASK) < 10) {
r = -EINVAL;
Expand Down Expand Up @@ -859,12 +855,11 @@ sn_hwperf_ioctl(struct inode *in, struct file *fp, u32 op, unsigned long arg)
error:
vfree(p);

lock_kernel();
return r;
}

static const struct file_operations sn_hwperf_fops = {
.ioctl = sn_hwperf_ioctl,
.unlocked_ioctl = sn_hwperf_ioctl,
};

static struct miscdevice sn_hwperf_dev = {
Expand Down

0 comments on commit c02adee

Please sign in to comment.