mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 12:41:26 +00:00
scst/include/backport.h: Improve the MIN_NICE backport
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8994 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1407,8 +1407,7 @@ static inline void sg_unmark_end(struct scatterlist *sg)
|
||||
* See also commit 3ee237dddcd8 ("sched/prio: Add 3 macros of MAX_NICE,
|
||||
* MIN_NICE and NICE_WIDTH in prio.h") # v3.15.
|
||||
*/
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0) && \
|
||||
(!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 7)
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0) && !defined(MIN_NICE)
|
||||
#define MIN_NICE -20
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user