diff options
author | Chunwei Chen <[email protected]> | 2014-05-07 10:57:19 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2014-05-07 13:38:03 -0700 |
commit | 1538f4b6e3cc08c334f58b0025aa7de1d6c97e1a (patch) | |
tree | 0e77f82c88db7283c0f058ddcc243a9fa3f0971d /include/sys/sysmacros.h | |
parent | 703371d8c734bc2cc6350f1bca014f08245dcc69 (diff) |
Linux 3.15 compat: NICE_TO_PRIO and PRIO_TO_NICE
These macro's were exposed to make them available to other
parts of the kernel and modules.
References:
torvalds/linux@6b6350f
Signed-off-by: Chunwei Chen <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Issue #355
Diffstat (limited to 'include/sys/sysmacros.h')
-rw-r--r-- | include/sys/sysmacros.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h index 1ac49b4f0..e73c7fd1e 100644 --- a/include/sys/sysmacros.h +++ b/include/sys/sysmacros.h @@ -95,8 +95,12 @@ #define minclsyspri (MAX_RT_PRIO) #define maxclsyspri (MAX_PRIO-1) +#ifndef NICE_TO_PRIO #define NICE_TO_PRIO(nice) (MAX_RT_PRIO + (nice) + 20) +#endif +#ifndef PRIO_TO_NICE #define PRIO_TO_NICE(prio) ((prio) - MAX_RT_PRIO - 20) +#endif /* Missing macros */ |