]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86/oprofile: reordering IBS code in op_model_amd.c
authorRobert Richter <robert.richter@amd.com>
Mon, 24 Nov 2008 13:21:03 +0000 (14:21 +0100)
committerRobert Richter <robert.richter@amd.com>
Wed, 10 Dec 2008 13:20:07 +0000 (14:20 +0100)
This is part of the cpu buffer rework.

Signed-off-by: Robert Richter <robert.richter@amd.com>
arch/x86/oprofile/op_model_amd.c

index f71bd218b48838e160c504d98ebe52fd6812d312..8ff657b3ff897580c8b86b2407f245f11a8749dd 100644 (file)
@@ -376,18 +376,7 @@ static void op_amd_shutdown(struct op_msrs const * const msrs)
        }
 }
 
-#ifndef CONFIG_OPROFILE_IBS
-
-/* no IBS support */
-
-static int op_amd_init(struct oprofile_operations *ops)
-{
-       return 0;
-}
-
-static void op_amd_exit(void) {}
-
-#else
+#ifdef CONFIG_OPROFILE_IBS
 
 static u8 ibs_eilvt_off;
 
@@ -531,7 +520,18 @@ static void op_amd_exit(void)
        clear_ibs_nmi();
 }
 
-#endif
+#else
+
+/* no IBS support */
+
+static int op_amd_init(struct oprofile_operations *ops)
+{
+       return 0;
+}
+
+static void op_amd_exit(void) {}
+
+#endif /* CONFIG_OPROFILE_IBS */
 
 struct op_x86_model_spec const op_amd_spec = {
        .init                   = op_amd_init,