aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-03-15 21:53:35 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-15 21:53:35 -0400
commit420c1c572d4ceaa2f37b6311b7017ac6cf049fe2 (patch)
treedf04e6b4b756b7a46d9887462d54a3ad0e1f91d5 /kernel/time.c
parent9620639b7ea3843983f4ced8b4c81eb4d8974838 (diff)
parent6e6823d17b157f185be09f4c70181299f9273f0b (diff)
Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (62 commits) posix-clocks: Check write permissions in posix syscalls hrtimer: Remove empty hrtimer_init_hres_timer() hrtimer: Update hrtimer->state documentation hrtimer: Update base[CLOCK_BOOTTIME].offset correctly timers: Export CLOCK_BOOTTIME via the posix timers interface timers: Add CLOCK_BOOTTIME hrtimer base time: Extend get_xtime_and_monotonic_offset() to also return sleep time: Introduce get_monotonic_boottime and ktime_get_boottime hrtimers: extend hrtimer base code to handle more then 2 clockids ntp: Remove redundant and incorrect parameter check mn10300: Switch do_timer() to xtimer_update() posix clocks: Introduce dynamic clocks posix-timers: Cleanup namespace posix-timers: Add support for fd based clocks x86: Add clock_adjtime for x86 posix-timers: Introduce a syscall for clock tuning. time: Splitout compat timex accessors ntp: Add ADJ_SETOFFSET mode bit time: Introduce timekeeping_inject_offset posix-timer: Update comment ... Fix up new system-call-related conflicts in arch/x86/ia32/ia32entry.S arch/x86/include/asm/unistd_32.h arch/x86/include/asm/unistd_64.h arch/x86/kernel/syscall_table_32.S (name_to_handle_at()/open_by_handle_at() vs clock_adjtime()), and some due to movement of get_jiffies_64() in: kernel/time.c
Diffstat (limited to 'kernel/time.c')
-rw-r--r--kernel/time.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/kernel/time.c b/kernel/time.c
index 55337a816b20..8e8dc6d705c9 100644
--- a/kernel/time.c
+++ b/kernel/time.c
@@ -150,7 +150,7 @@ static inline void warp_clock(void)
150 * various programs will get confused when the clock gets warped. 150 * various programs will get confused when the clock gets warped.
151 */ 151 */
152 152
153int do_sys_settimeofday(struct timespec *tv, struct timezone *tz) 153int do_sys_settimeofday(const struct timespec *tv, const struct timezone *tz)
154{ 154{
155 static int firsttime = 1; 155 static int firsttime = 1;
156 int error = 0; 156 int error = 0;
@@ -674,7 +674,6 @@ u64 nsecs_to_jiffies64(u64 n)
674#endif 674#endif
675} 675}
676 676
677
678/** 677/**
679 * nsecs_to_jiffies - Convert nsecs in u64 to jiffies 678 * nsecs_to_jiffies - Convert nsecs in u64 to jiffies
680 * 679 *
@@ -693,23 +692,6 @@ unsigned long nsecs_to_jiffies(u64 n)
693 return (unsigned long)nsecs_to_jiffies64(n); 692 return (unsigned long)nsecs_to_jiffies64(n);
694} 693}
695 694
696#if (BITS_PER_LONG < 64)
697u64 get_jiffies_64(void)
698{
699 unsigned long seq;
700 u64 ret;
701
702 do {
703 seq = read_seqbegin(&xtime_lock);
704 ret = jiffies_64;
705 } while (read_seqretry(&xtime_lock, seq));
706 return ret;
707}
708EXPORT_SYMBOL(get_jiffies_64);
709#endif
710
711EXPORT_SYMBOL(jiffies);
712
713/* 695/*
714 * Add two timespec values and do a safety check for overflow. 696 * Add two timespec values and do a safety check for overflow.
715 * It's assumed that both values are valid (>= 0) 697 * It's assumed that both values are valid (>= 0)