From 993370ad9f06c8634a13f82af5f6696c57677756 Mon Sep 17 00:00:00 2001 From: Mike Marciniszyn Date: Mon, 21 May 2012 09:01:14 -0400 Subject: [PATCH] compat: backport task_cpus_allowed() <= 2.6.32 Signed-off-by: Mike Marciniszyn --- include/linux/compat-2.6.33.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/compat-2.6.33.h b/include/linux/compat-2.6.33.h index 24e9c28..6ffc1cb 100644 --- a/include/linux/compat-2.6.33.h +++ b/include/linux/compat-2.6.33.h @@ -14,6 +14,7 @@ #endif #include #include +#include #if defined(CONFIG_COMPAT_FIRMWARE_CLASS) #define release_firmware compat_release_firmware @@ -173,6 +174,8 @@ static inline long __must_check IS_ERR_OR_NULL(const void *ptr) #define IPV4_FLOW 0x10 /* hash only */ #define IPV6_FLOW 0x11 /* hash only */ +#define tsk_cpus_allowed(tsk) (&(tsk)->cpus_allowed) + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)) */ #endif /* LINUX_26_33_COMPAT_H */ -- 2.41.0