gator-driver: Disable event-base sampling support
authorPawel Moll <pawel.moll@arm.com>
Wed, 16 Nov 2011 12:38:18 +0000 (12:38 +0000)
committerPawel Moll <pawel.moll@arm.com>
Thu, 17 Nov 2011 18:15:05 +0000 (18:15 +0000)
... due to changes in 3.1 Linaro kernel PMU API.

This is a temporary measure.

Signed-off-by: Pawel Moll <pawel.moll@arm.com>
driver/gator_main.c

index 36e951ba915817309bd8b7599f59a27d451def8c..3ecd0309919ee1f10e29448cd5133a530c8e0a24 100644 (file)
@@ -70,7 +70,11 @@ static unsigned long gator_protocol_version = 7;
 #define MESSAGE_SCHEDULER_TRACE                9
 #define MESSAGE_PID_NAME                       11
 
 #define MESSAGE_SCHEDULER_TRACE                9
 #define MESSAGE_PID_NAME                       11
 
+#if 0 /* Disabled because of changes in Linaro 3.1 kernel */
 #define LINUX_PMU_SUPPORT LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35) && defined(CONFIG_CPU_HAS_PMU)
 #define LINUX_PMU_SUPPORT LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35) && defined(CONFIG_CPU_HAS_PMU)
+#else
+#define LINUX_PMU_SUPPORT 0
+#endif
 
 #if defined(__arm__)
 #define PC_REG regs->ARM_pc
 
 #if defined(__arm__)
 #define PC_REG regs->ARM_pc