diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-01-10 04:52:23 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-10 16:01:35 (GMT) |
commit | f4818900fa3ee1c56e96f6dede7cc4c05ed383d1 (patch) | |
tree | 63a53f60a01a33c1c6e755ba16b05de33008bb3d /include/linux | |
parent | 753be6222728996974e9e12c185108fcabbb7c6e (diff) | |
download | linux-fsl-qoriq-f4818900fa3ee1c56e96f6dede7cc4c05ed383d1.tar.xz |
[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')
-rw-r--r-- | include/linux/time.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/time.h b/include/linux/time.h index 9c444d9..773b83d 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) return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec); } -extern unsigned long mktime (unsigned int year, unsigned int mon, - unsigned int day, unsigned int hour, - unsigned int min, unsigned int sec); +extern unsigned long mktime(const unsigned int year, const unsigned int mon, + const unsigned int day, const unsigned int hour, + const unsigned int min, const unsigned int sec); + +extern void set_normalized_timespec(struct timespec *ts, time_t sec, long nsec); extern struct timespec xtime; extern struct timespec wall_to_monotonic; @@ -51,8 +53,6 @@ static inline unsigned long get_seconds(void) return xtime.tv_sec; } -extern void set_normalized_timespec (struct timespec *ts, time_t sec, long nsec); - struct timespec current_kernel_time(void); #define CURRENT_TIME (current_kernel_time()) |