diff options
| author | Ingo Molnar <mingo@kernel.org> | 2015-02-28 02:03:10 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2015-02-28 02:03:10 -0500 |
| commit | 5838d18955b52467f4b30486e62a31727b39998d (patch) | |
| tree | 8aeb8412156bab93a6b39f2de4a8d6c912ddb31a /kernel/sys.c | |
| parent | 579deee571a755c485ad702ef82c77a98a2ccc05 (diff) | |
| parent | 895c8b7b4623d4f55e260e5dee2574b4f7113105 (diff) | |
Merge branch 'linus' into x86/urgent, to merge dependent patch
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sys.c')
| -rw-r--r-- | kernel/sys.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index ea9c88109894..667b2e62fad2 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
| @@ -97,6 +97,12 @@ | |||
| 97 | #ifndef MPX_DISABLE_MANAGEMENT | 97 | #ifndef MPX_DISABLE_MANAGEMENT |
| 98 | # define MPX_DISABLE_MANAGEMENT(a) (-EINVAL) | 98 | # define MPX_DISABLE_MANAGEMENT(a) (-EINVAL) |
| 99 | #endif | 99 | #endif |
| 100 | #ifndef GET_FP_MODE | ||
| 101 | # define GET_FP_MODE(a) (-EINVAL) | ||
| 102 | #endif | ||
| 103 | #ifndef SET_FP_MODE | ||
| 104 | # define SET_FP_MODE(a,b) (-EINVAL) | ||
| 105 | #endif | ||
| 100 | 106 | ||
| 101 | /* | 107 | /* |
| 102 | * this is where the system-wide overflow UID and GID are defined, for | 108 | * this is where the system-wide overflow UID and GID are defined, for |
| @@ -2219,6 +2225,12 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3, | |||
| 2219 | return -EINVAL; | 2225 | return -EINVAL; |
| 2220 | error = MPX_DISABLE_MANAGEMENT(me); | 2226 | error = MPX_DISABLE_MANAGEMENT(me); |
| 2221 | break; | 2227 | break; |
| 2228 | case PR_SET_FP_MODE: | ||
| 2229 | error = SET_FP_MODE(me, arg2); | ||
| 2230 | break; | ||
| 2231 | case PR_GET_FP_MODE: | ||
| 2232 | error = GET_FP_MODE(me); | ||
| 2233 | break; | ||
| 2222 | default: | 2234 | default: |
| 2223 | error = -EINVAL; | 2235 | error = -EINVAL; |
| 2224 | break; | 2236 | break; |
