[kgtp] r914 committed - Fix the build error with 3.0.x

  • From: kgtp@xxxxxxxxxxxxxx
  • To: kgtp@xxxxxxxxxxxxx
  • Date: Tue, 07 Feb 2012 04:15:09 +0000

Revision: 914
Author:   teawater
Date:     Mon Feb  6 20:14:05 2012
Log:      Fix the build error with 3.0.x

http://code.google.com/p/kgtp/source/detail?r=914

Modified:
 /trunk/perf_event.c

=======================================
--- /trunk/perf_event.c Sat Feb  4 00:32:45 2012
+++ /trunk/perf_event.c Mon Feb  6 20:14:05 2012
@@ -499,7 +499,7 @@

 static void perf_output_wakeup(struct perf_output_handle *handle)
 {
-#if (LINUX_VERSION_CODE > KERNEL_VERSION(3,0,0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0))
        atomic_set(&handle->rb->poll, POLL_IN);
 #else
        atomic_set(&handle->buffer->poll, POLL_IN);

Other related posts:

  • » [kgtp] r914 committed - Fix the build error with 3.0.x - kgtp