From: Mike Marciniszyn Date: Mon, 21 May 2012 13:01:14 +0000 (-0400) Subject: compat: backport task_cpus_allowed() <= 2.6.32 X-Git-Tag: compat-2012-07-02~5 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=993370ad9f06c8634a13f82af5f6696c57677756;p=~emulex%2Ffor-vlad%2Fold%2Fcompat.git compat: backport task_cpus_allowed() <= 2.6.32 Signed-off-by: Mike Marciniszyn --- 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 */