aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2006-01-09 23:52:25 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-10 11:01:36 -0500
commit1ad106ca185e66dc312518e18e2ffaedf376a160 (patch)
treef0a146dbf96e48af86df108472e3f8443fe4a9e3 /include/linux
parent0c4f6eeca98a805fd0c2536b55039383eb56d2ba (diff)
[PATCH] hrtimer: coding style clean up of clock constants
clean up the CLOCK_ portions of time.h Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/time.h23
1 files changed, 9 insertions, 14 deletions
diff --git a/include/linux/time.h b/include/linux/time.h
index ea64cde7c450..aded44c48d42 100644
--- a/include/linux/time.h
+++ b/include/linux/time.h
@@ -100,30 +100,25 @@ struct itimerval {
100 struct timeval it_value; /* current value */ 100 struct timeval it_value; /* current value */
101}; 101};
102 102
103
104/* 103/*
105 * The IDs of the various system clocks (for POSIX.1b interval timers). 104 * The IDs of the various system clocks (for POSIX.1b interval timers).
106 */ 105 */
107#define CLOCK_REALTIME 0 106#define CLOCK_REALTIME 0
108#define CLOCK_MONOTONIC 1 107#define CLOCK_MONOTONIC 1
109#define CLOCK_PROCESS_CPUTIME_ID 2 108#define CLOCK_PROCESS_CPUTIME_ID 2
110#define CLOCK_THREAD_CPUTIME_ID 3 109#define CLOCK_THREAD_CPUTIME_ID 3
111 110
112/* 111/*
113 * The IDs of various hardware clocks 112 * The IDs of various hardware clocks
114 */ 113 */
115 114#define CLOCK_SGI_CYCLE 10
116 115#define MAX_CLOCKS 16
117#define CLOCK_SGI_CYCLE 10 116#define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC)
118#define MAX_CLOCKS 16 117#define CLOCKS_MONO CLOCK_MONOTONIC
119#define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC)
120#define CLOCKS_MONO (CLOCK_MONOTONIC)
121 118
122/* 119/*
123 * The various flags for setting POSIX.1b interval timers. 120 * The various flags for setting POSIX.1b interval timers.
124 */ 121 */
125 122#define TIMER_ABSTIME 0x01
126#define TIMER_ABSTIME 0x01
127
128 123
129#endif 124#endif