Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211909
b: refs/heads/master
c: 5140434
h: refs/heads/master
i:
  211907: de227ab
v: v3
  • Loading branch information
Robert Richter committed Oct 1, 2010
1 parent d4e28c4 commit fd29ab0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 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: f6dedecc37164a58bb80ae2ed9d204669ffc4850
refs/heads/master: 5140434d5f82f2e2119926272ada2e9731ec04f1
9 changes: 1 addition & 8 deletions trunk/arch/x86/oprofile/nmi_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,18 +695,13 @@ static int __init ppro_init(char **cpu_type)
return 1;
}

/* in order to get sysfs right */
static int using_nmi;

int __init op_nmi_init(struct oprofile_operations *ops)
{
__u8 vendor = boot_cpu_data.x86_vendor;
__u8 family = boot_cpu_data.x86;
char *cpu_type = NULL;
int ret = 0;

using_nmi = 0;

if (!cpu_has_apic)
return -ENODEV;

Expand Down Expand Up @@ -790,13 +785,11 @@ int __init op_nmi_init(struct oprofile_operations *ops)
if (ret)
return ret;

using_nmi = 1;
printk(KERN_INFO "oprofile: using NMI interrupt.\n");
return 0;
}

void op_nmi_exit(void)
{
if (using_nmi)
exit_sysfs();
exit_sysfs();
}

0 comments on commit fd29ab0

Please sign in to comment.