diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-19 20:10:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-19 20:10:06 -0400 |
commit | 7d02093e29de9efc4a72d5e93baae9506969b789 (patch) | |
tree | a6fc2450132ae419934f6eb9d223baa338b7d782 /arch/avr32/kernel | |
parent | 6e0b7b2c39b91b467270dd0bc383914f99e1fb28 (diff) | |
parent | e9ddbc075d95b2edf111247cdde16f33c31654a8 (diff) |
Merge branch 'timers-for-linus-cleanups' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'timers-for-linus-cleanups' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
avr32: Fix typo in read_persistent_clock()
sparc: Convert sparc to use read/update_persistent_clock
cris: Convert cris to use read/update_persistent_clock
m68k: Convert m68k to use read/update_persistent_clock
m32r: Convert m32r to use read/update_peristent_clock
blackfin: Convert blackfin to use read/update_persistent_clock
ia64: Convert ia64 to use read/update_persistent_clock
avr32: Convert avr32 to use read/update_persistent_clock
h8300: Convert h8300 to use read/update_persistent_clock
frv: Convert frv to use read/update_persistent_clock
mn10300: Convert mn10300 to use read/update_persistent_clock
alpha: Convert alpha to use read/update_persistent_clock
xtensa: Fix unnecessary setting of xtime
time: Clean up direct xtime usage in xen
Diffstat (limited to 'arch/avr32/kernel')
-rw-r--r-- | arch/avr32/kernel/time.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/avr32/kernel/time.c b/arch/avr32/kernel/time.c index f27aa3b259fa..668ed2817e51 100644 --- a/arch/avr32/kernel/time.c +++ b/arch/avr32/kernel/time.c | |||
@@ -110,17 +110,17 @@ static struct clock_event_device comparator = { | |||
110 | .set_mode = comparator_mode, | 110 | .set_mode = comparator_mode, |
111 | }; | 111 | }; |
112 | 112 | ||
113 | void read_persistent_clock(struct timespec *ts) | ||
114 | { | ||
115 | ts->tv_sec = mktime(2007, 1, 1, 0, 0, 0); | ||
116 | ts->tv_nsec = 0; | ||
117 | } | ||
118 | |||
113 | void __init time_init(void) | 119 | void __init time_init(void) |
114 | { | 120 | { |
115 | unsigned long counter_hz; | 121 | unsigned long counter_hz; |
116 | int ret; | 122 | int ret; |
117 | 123 | ||
118 | xtime.tv_sec = mktime(2007, 1, 1, 0, 0, 0); | ||
119 | xtime.tv_nsec = 0; | ||
120 | |||
121 | set_normalized_timespec(&wall_to_monotonic, | ||
122 | -xtime.tv_sec, -xtime.tv_nsec); | ||
123 | |||
124 | /* figure rate for counter */ | 124 | /* figure rate for counter */ |
125 | counter_hz = clk_get_rate(boot_cpu_data.clk); | 125 | counter_hz = clk_get_rate(boot_cpu_data.clk); |
126 | counter.mult = clocksource_hz2mult(counter_hz, counter.shift); | 126 | counter.mult = clocksource_hz2mult(counter_hz, counter.shift); |