diff options
Diffstat (limited to 'include/linux/posix-timers.h')
-rw-r--r-- | include/linux/posix-timers.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/include/linux/posix-timers.h b/include/linux/posix-timers.h index 62d44c176071..64aa189efe21 100644 --- a/include/linux/posix-timers.h +++ b/include/linux/posix-timers.h | |||
@@ -8,19 +8,9 @@ | |||
8 | #include <linux/alarmtimer.h> | 8 | #include <linux/alarmtimer.h> |
9 | 9 | ||
10 | 10 | ||
11 | static inline unsigned long long cputime_to_expires(cputime_t expires) | ||
12 | { | ||
13 | return (__force unsigned long long)expires; | ||
14 | } | ||
15 | |||
16 | static inline cputime_t expires_to_cputime(unsigned long long expires) | ||
17 | { | ||
18 | return (__force cputime_t)expires; | ||
19 | } | ||
20 | |||
21 | struct cpu_timer_list { | 11 | struct cpu_timer_list { |
22 | struct list_head entry; | 12 | struct list_head entry; |
23 | unsigned long long expires, incr; | 13 | u64 expires, incr; |
24 | struct task_struct *task; | 14 | struct task_struct *task; |
25 | int firing; | 15 | int firing; |
26 | }; | 16 | }; |
@@ -129,7 +119,7 @@ void run_posix_cpu_timers(struct task_struct *task); | |||
129 | void posix_cpu_timers_exit(struct task_struct *task); | 119 | void posix_cpu_timers_exit(struct task_struct *task); |
130 | void posix_cpu_timers_exit_group(struct task_struct *task); | 120 | void posix_cpu_timers_exit_group(struct task_struct *task); |
131 | void set_process_cpu_timer(struct task_struct *task, unsigned int clock_idx, | 121 | void set_process_cpu_timer(struct task_struct *task, unsigned int clock_idx, |
132 | cputime_t *newval, cputime_t *oldval); | 122 | u64 *newval, u64 *oldval); |
133 | 123 | ||
134 | long clock_nanosleep_restart(struct restart_block *restart_block); | 124 | long clock_nanosleep_restart(struct restart_block *restart_block); |
135 | 125 | ||