mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-22 07:06:22 +00:00
scst: set_cpus_allowed_ptr() workaround for RHEL 5.10 (merge r5147 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@5150 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+3
-6
@@ -141,12 +141,9 @@ static inline void cpumask_copy(cpumask_t *dstp,
|
||||
}
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26) && !defined(RHEL_MAJOR)
|
||||
static inline int set_cpus_allowed_ptr(struct task_struct *p,
|
||||
const cpumask_t *new_mask)
|
||||
{
|
||||
return set_cpus_allowed(p, *new_mask);
|
||||
}
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26) && \
|
||||
(!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 6)
|
||||
#define set_cpus_allowed_ptr(p, new_mask) set_cpus_allowed((p), *(new_mask))
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31)
|
||||
|
||||
Reference in New Issue
Block a user