From: VMware, Inc <> Date: Thu, 17 Jun 2010 22:18:10 +0000 (-0700) Subject: Remove compat_set_user_nice. X-Git-Tag: 2010.06.16-268169~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=30b6b8cb6bd8584deb4f70d2b1eb59ea0d1dca9f;p=thirdparty%2Fopen-vm-tools.git Remove compat_set_user_nice. All kernels that we support have set_user_nice(), no need to keep compat layer. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/modules/linux/shared/compat_sched.h b/open-vm-tools/modules/linux/shared/compat_sched.h index a9696ebcc..3f3304bd7 100644 --- a/open-vm-tools/modules/linux/shared/compat_sched.h +++ b/open-vm-tools/modules/linux/shared/compat_sched.h @@ -216,18 +216,6 @@ static inline void daemonize(void) { #endif -/* - * set priority for specified thread. Exists on 2.6.x kernels and some - * 2.4.x vendor's kernels. - */ -#if defined(VMW_HAVE_SET_USER_NICE) -#define compat_set_user_nice(task, n) set_user_nice((task), (n)) -#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 0) -#define compat_set_user_nice(task, n) do { (task)->priority = 20 - (n); } while (0) -#elif !defined(VMW_HAVE_SET_USER_NICE) -#define compat_set_user_nice(task, n) do { (task)->nice = (n); } while (0) -#endif - /* * try to freeze a process. For kernels 2.6.11 or newer, we know how to choose * the interface. The problem is that the oldest interface, introduced in