diff options
author | Robert Richter <robert.richter@amd.com> | 2008-07-22 15:09:00 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-26 05:48:09 -0400 |
commit | fc2bd7345b4e006a34c2ea3711d8c6b83cba50f7 (patch) | |
tree | 8cd10a0316bf527a20c6eb54026cd214b4b66b12 /arch/x86 | |
parent | ebb535de267386f659e0348185b1e361dbba3b59 (diff) |
OProfile: fix setup_ibs_files() function interface
Signed-off-by: Robert Richter <robert.richter@amd.com>
Cc: oprofile-list <oprofile-list@lists.sourceforge.net>
Cc: Barry Kasindorf <barry.kasindorf@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-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) |