aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2008-07-22 21:09:00 +0200
committerIngo Molnar <mingo@elte.hu>2008-07-26 11:48:09 +0200
commitfc2bd7345b4e006a34c2ea3711d8c6b83cba50f7 (patch)
tree8cd10a0316bf527a20c6eb54026cd214b4b66b12 /arch/x86
parentebb535de267386f659e0348185b1e361dbba3b59 (diff)
downloadkernel_samsung_aries-fc2bd7345b4e006a34c2ea3711d8c6b83cba50f7.zip
kernel_samsung_aries-fc2bd7345b4e006a34c2ea3711d8c6b83cba50f7.tar.gz
kernel_samsung_aries-fc2bd7345b4e006a34c2ea3711d8c6b83cba50f7.tar.bz2
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.c6
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 ce73236..2650b12 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)
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;
@@ -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)