aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/oprofile/nmi_int.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c
index 5856e61cb098..cb88b1a0bd5f 100644
--- a/arch/x86/oprofile/nmi_int.c
+++ b/arch/x86/oprofile/nmi_int.c
@@ -435,15 +435,13 @@ static int nmi_create_files(struct super_block *sb, struct dentry *root)
435 struct dentry *dir; 435 struct dentry *dir;
436 char buf[4]; 436 char buf[4];
437 437
438#ifndef CONFIG_OPROFILE_EVENT_MULTIPLEX
439 /* quick little hack to _not_ expose a counter if it is not 438 /* quick little hack to _not_ expose a counter if it is not
440 * available for use. This should protect userspace app. 439 * available for use. This should protect userspace app.
441 * NOTE: assumes 1:1 mapping here (that counters are organized 440 * NOTE: assumes 1:1 mapping here (that counters are organized
442 * sequentially in their struct assignment). 441 * sequentially in their struct assignment).
443 */ 442 */
444 if (unlikely(!avail_to_resrv_perfctr_nmi_bit(i))) 443 if (!avail_to_resrv_perfctr_nmi_bit(op_x86_virt_to_phys(i)))
445 continue; 444 continue;
446#endif /* CONFIG_OPROFILE_EVENT_MULTIPLEX */
447 445
448 snprintf(buf, sizeof(buf), "%d", i); 446 snprintf(buf, sizeof(buf), "%d", i);
449 dir = oprofilefs_mkdir(sb, root, buf); 447 dir = oprofilefs_mkdir(sb, root, buf);