Skip to content

Commit

Permalink
OProfile: fix setup_ibs_files() function interface
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Robert Richter authored and Ingo Molnar committed Jul 26, 2008
1 parent ebb535d commit fc2bd73
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/x86/oprofile/op_model_athlon.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,13 +446,13 @@ static void clear_ibs_nmi(void)
on_each_cpu(apic_clear_ibs_nmi_per_cpu, NULL, 1);
}

static void setup_ibs_files(struct super_block *sb, struct dentry *root)
static int setup_ibs_files(struct super_block * sb, struct dentry * root)
{
char buf[12];
struct dentry *dir;

if (!ibs_allowed)
return;
return 0;

/* setup some reasonable defaults */
ibs_config.max_cnt_fetch = 250000;
Expand All @@ -476,6 +476,8 @@ static void setup_ibs_files(struct super_block *sb, struct dentry *root)
&ibs_config.max_cnt_op);
oprofilefs_create_ulong(sb, dir, "dispatched_ops",
&ibs_config.dispatched_ops);

return 0;
}

static int op_amd_init(struct oprofile_operations *ops)
Expand Down

0 comments on commit fc2bd73

Please sign in to comment.