aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/time.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2006-01-09 23:52:23 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-10 11:01:35 -0500
commitf4818900fa3ee1c56e96f6dede7cc4c05ed383d1 (patch)
tree63a53f60a01a33c1c6e755ba16b05de33008bb3d /include/linux/time.h
parent753be6222728996974e9e12c185108fcabbb7c6e (diff)
[PATCH] hrtimer: clean up mktime and make arguments const
add 'const' to mktime arguments, and clean it up a bit 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/time.h')
-rw-r--r--include/linux/time.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/time.h b/include/linux/time.h
index 9c444d9c4aa0..773b83ddd8ef 100644
--- a/include/linux/time.h
+++ b/include/linux/time.h
@@ -38,9 +38,11 @@ static __inline__ int timespec_equal(struct timespec *a, struct timespec *b)
38 return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec); 38 return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec);
39} 39}
40 40
41extern unsigned long mktime (unsigned int year, unsigned int mon, 41extern unsigned long mktime(const unsigned int year, const unsigned int mon,
42 unsigned int day, unsigned int hour, 42 const unsigned int day, const unsigned int hour,
43 unsigned int min, unsigned int sec); 43 const unsigned int min, const unsigned int sec);
44
45extern void set_normalized_timespec(struct timespec *ts, time_t sec, long nsec);
44 46
45extern struct timespec xtime; 47extern struct timespec xtime;
46extern struct timespec wall_to_monotonic; 48extern struct timespec wall_to_monotonic;
@@ -51,8 +53,6 @@ static inline unsigned long get_seconds(void)
51 return xtime.tv_sec; 53 return xtime.tv_sec;
52} 54}
53 55
54extern void set_normalized_timespec (struct timespec *ts, time_t sec, long nsec);
55
56struct timespec current_kernel_time(void); 56struct timespec current_kernel_time(void);
57 57
58#define CURRENT_TIME (current_kernel_time()) 58#define CURRENT_TIME (current_kernel_time())