Revision: 1565 Author: teawater Date: Thu May 9 05:33:59 2013 Log: Update version to 20130508+ Fix build issue with Linux kernel 2.6.37. http://code.google.com/p/kgtp/source/detail?r=1565 Modified: /trunk/Makefile /trunk/UPDATE /trunk/dkms.conf /trunk/gtp.c /trunk/perf_event.c ======================================= --- /trunk/Makefile Wed May 8 00:45:30 2013 +++ /trunk/Makefile Thu May 9 05:33:59 2013 @@ -4,7 +4,7 @@ obj-m := gtp.o endif -MODULEVERSION := 20130508 +MODULEVERSION := 20130508+ KERNELVERSION := $(shell uname -r) KERNELDIR := /lib/modules/$(KERNELVERSION)/build/ ======================================= --- /trunk/UPDATE Wed May 8 00:45:30 2013 +++ /trunk/UPDATE Thu May 9 05:33:59 2013 @@ -1,3 +1,7 @@ +*** 20130508+ + +* Fix build issue with Linux kernel 2.6.37. + *** 20130508 * http://kgtp.googlecode.com/files/kgtp_20130508.tar.bz2 ======================================= --- /trunk/dkms.conf Wed May 8 00:45:30 2013 +++ /trunk/dkms.conf Thu May 9 05:33:59 2013 @@ -1,5 +1,5 @@ PACKAGE_NAME="gtp" -PACKAGE_VERSION="20130508" +PACKAGE_VERSION="20130508+" CLEAN="make clean" MAKE[0]="make gtp.ko KERNELVERSION=$kernelver" BUILT_MODULE_NAME[0]="gtp" ======================================= --- /trunk/gtp.c Wed May 8 01:23:02 2013 +++ /trunk/gtp.c Thu May 9 05:33:59 2013 @@ -20,7 +20,7 @@ */ /* If "* 10" means that this is not a release version. */ -#define GTP_VERSION (20130508) +#define GTP_VERSION (20130508 * 10) #include <linux/version.h> #ifndef RHEL_RELEASE_VERSION ======================================= --- /trunk/perf_event.c Mon Feb 6 20:14:05 2012 +++ /trunk/perf_event.c Thu May 9 05:33:59 2013 @@ -380,7 +380,7 @@ } #endif -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)) /* * If we inherit events we want to return the parent event id @@ -836,7 +836,7 @@ event->state = PERF_EVENT_STATE_ACTIVE; event->oncpu = smp_processor_id(); -#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,37)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)) /* * Unthrottle events, since we scheduled we might have missed several * ticks already, also for a heavily scheduling task there is little