]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
OProfile: fix setup_ibs_files() function interface
authorRobert Richter <robert.richter@amd.com>
Tue, 22 Jul 2008 19:09:00 +0000 (21:09 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 26 Jul 2008 09:48:09 +0000 (11:48 +0200)
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>
arch/x86/oprofile/op_model_athlon.c

index ce732362dbb06cf49e8b05ee373325d9f42e917c..2650b12a0c56415c50696abea0bf6c2fe88fee0a 100644 (file)
@@ -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)