diff options
Diffstat (limited to 'arch/x86/oprofile')
-rw-r--r-- | arch/x86/oprofile/op_model_athlon.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/oprofile/op_model_athlon.c b/arch/x86/oprofile/op_model_athlon.c index ce732362dbb0..2650b12a0c56 100644 --- a/arch/x86/oprofile/op_model_athlon.c +++ b/arch/x86/oprofile/op_model_athlon.c | |||
@@ -446,13 +446,13 @@ static void clear_ibs_nmi(void) | |||
446 | on_each_cpu(apic_clear_ibs_nmi_per_cpu, NULL, 1); | 446 | on_each_cpu(apic_clear_ibs_nmi_per_cpu, NULL, 1); |
447 | } | 447 | } |
448 | 448 | ||
449 | static void setup_ibs_files(struct super_block *sb, struct dentry *root) | 449 | static int setup_ibs_files(struct super_block * sb, struct dentry * root) |
450 | { | 450 | { |
451 | char buf[12]; | 451 | char buf[12]; |
452 | struct dentry *dir; | 452 | struct dentry *dir; |
453 | 453 | ||
454 | if (!ibs_allowed) | 454 | if (!ibs_allowed) |
455 | return; | 455 | return 0; |
456 | 456 | ||
457 | /* setup some reasonable defaults */ | 457 | /* setup some reasonable defaults */ |
458 | ibs_config.max_cnt_fetch = 250000; | 458 | ibs_config.max_cnt_fetch = 250000; |
@@ -476,6 +476,8 @@ static void setup_ibs_files(struct super_block *sb, struct dentry *root) | |||
476 | &ibs_config.max_cnt_op); | 476 | &ibs_config.max_cnt_op); |
477 | oprofilefs_create_ulong(sb, dir, "dispatched_ops", | 477 | oprofilefs_create_ulong(sb, dir, "dispatched_ops", |
478 | &ibs_config.dispatched_ops); | 478 | &ibs_config.dispatched_ops); |
479 | |||
480 | return 0; | ||
479 | } | 481 | } |
480 | 482 | ||
481 | static int op_amd_init(struct oprofile_operations *ops) | 483 | static int op_amd_init(struct oprofile_operations *ops) |