diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/capability.h | 7 | ||||
| -rw-r--r-- | include/linux/posix-timers.h | 2 | ||||
| -rw-r--r-- | include/linux/time.h | 2 |
3 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/capability.h b/include/linux/capability.h index 16ee8b49a200..7cb23eae693d 100644 --- a/include/linux/capability.h +++ b/include/linux/capability.h | |||
| @@ -355,7 +355,12 @@ struct cpu_vfs_cap_data { | |||
| 355 | 355 | ||
| 356 | #define CAP_SYSLOG 34 | 356 | #define CAP_SYSLOG 34 |
| 357 | 357 | ||
| 358 | #define CAP_LAST_CAP CAP_SYSLOG | 358 | /* Allow triggering something that will wake the system */ |
| 359 | |||
| 360 | #define CAP_WAKE_ALARM 35 | ||
| 361 | |||
| 362 | |||
| 363 | #define CAP_LAST_CAP CAP_WAKE_ALARM | ||
| 359 | 364 | ||
| 360 | #define cap_valid(x) ((x) >= 0 && (x) <= CAP_LAST_CAP) | 365 | #define cap_valid(x) ((x) >= 0 && (x) <= CAP_LAST_CAP) |
| 361 | 366 | ||
diff --git a/include/linux/posix-timers.h b/include/linux/posix-timers.h index d51243ae0726..808227d40a64 100644 --- a/include/linux/posix-timers.h +++ b/include/linux/posix-timers.h | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | #include <linux/list.h> | 5 | #include <linux/list.h> |
| 6 | #include <linux/sched.h> | 6 | #include <linux/sched.h> |
| 7 | #include <linux/timex.h> | 7 | #include <linux/timex.h> |
| 8 | #include <linux/alarmtimer.h> | ||
| 8 | 9 | ||
| 9 | union cpu_time_count { | 10 | union cpu_time_count { |
| 10 | cputime_t cpu; | 11 | cputime_t cpu; |
| @@ -80,6 +81,7 @@ struct k_itimer { | |||
| 80 | unsigned long incr; | 81 | unsigned long incr; |
| 81 | unsigned long expires; | 82 | unsigned long expires; |
| 82 | } mmtimer; | 83 | } mmtimer; |
| 84 | struct alarm alarmtimer; | ||
| 83 | } it; | 85 | } it; |
| 84 | }; | 86 | }; |
| 85 | 87 | ||
diff --git a/include/linux/time.h b/include/linux/time.h index 4ea5a75fcacd..b3061782dec3 100644 --- a/include/linux/time.h +++ b/include/linux/time.h | |||
| @@ -295,6 +295,8 @@ struct itimerval { | |||
| 295 | #define CLOCK_REALTIME_COARSE 5 | 295 | #define CLOCK_REALTIME_COARSE 5 |
| 296 | #define CLOCK_MONOTONIC_COARSE 6 | 296 | #define CLOCK_MONOTONIC_COARSE 6 |
| 297 | #define CLOCK_BOOTTIME 7 | 297 | #define CLOCK_BOOTTIME 7 |
| 298 | #define CLOCK_REALTIME_ALARM 8 | ||
| 299 | #define CLOCK_BOOTTIME_ALARM 9 | ||
| 298 | 300 | ||
| 299 | /* | 301 | /* |
| 300 | * The IDs of various hardware clocks: | 302 | * The IDs of various hardware clocks: |
