kernel_optimize_test/include/asm-i386/mach-default
Matt Mackall 63732c2f37 [PATCH] RTC: Remove RTC UIP synchronization on x86
Reading the CMOS clock on x86 and some other arches currently takes up to one
second because it synchronizes with the CMOS second tick-over.  This delay
shows up at boot time as well a resume time.

This is the currently the most substantial boot time delay for machines that
are working towards instant-on capability.  Also, a quick back of the envelope
calculation (.5sec * 2M users * 1 boot a day * 10 years) suggests it has cost
Linux users in the neighborhood of a million man-hours.

An earlier thread on this topic is here:

http://groups.google.com/group/linux.kernel/browse_frm/thread/8a24255215ff6151/2aa97e66a977653d?hl=en&lr=&ie=UTF-8&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26selm%3D1To2R-2S7-11%40gated-at.bofh.it#2aa97e66a977653d

..from which the consensus seems to be that it's no longer desirable.

In my view, there are basically four cases to consider:

1) networked, need precise walltime: use NTP
2) networked, don't need precise walltime: use NTP anyway
3) not networked, don't need sub-second precision walltime: don't care
4) not networked, need sub-second precision walltime:
   get a network or a radio time source because RTC isn't good enough anyway

So this patch series simply removes the synchronization in favor of a simple
seqlock-like approach using the seconds value.

Note that for purposes of timer accuracy on wakeup, this patch will cause us
to fire timers up to one second late.  But as the current timer resume code
will already sync once (or more!), it's no worse for short timers.

Signed-off-by: Matt Mackall <mpm@selenic.com>
Cc: Andi Kleen <ak@muc.de>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-28 09:16:00 -08:00
..
apm.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bios_ebda.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
do_timer.h [PATCH] i386: fix uses of user_mode() vs. user_mode_vm() 2006-03-23 07:38:05 -08:00
entry_arch.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
io_ports.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irq_vectors_limits.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irq_vectors.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach_apic.h [PATCH] Do not enforce unique IO_APIC_ID check for xAPIC systems (i386) 2005-06-23 09:45:09 -07:00
mach_apicdef.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach_ipi.h [PATCH] x86_64/i386: Remove preempt disable calls in lowlevel IPI 2006-01-11 19:01:57 -08:00
mach_mpparse.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach_mpspec.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach_reboot.h [PATCH] x86_64: Reduce number of retries for reset through keyboard controller 2005-11-14 19:55:16 -08:00
mach_time.h [PATCH] RTC: Remove RTC UIP synchronization on x86 2006-03-28 09:16:00 -08:00
mach_timer.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach_traps.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mach_wakecpu.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pci-functions.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
setup_arch_post.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
setup_arch_pre.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
smpboot_hooks.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00