rearchitecture of the way time is kept:
commit0350e1c755de722c9fcba8082531b1a96e405ab4
authorTravis Geiselbrecht <geist@newos.org>
Sat, 6 Dec 2003 01:13:20 +0000 (6 01:13 +0000)
committerTravis Geiselbrecht <geist@newos.org>
Sat, 6 Dec 2003 01:13:20 +0000 (6 01:13 +0000)
tree704f1581ee7f8254411ccf9fe0c2f13e93900936
parent81a4fd8671d2acaf0f7c852253b1d570f3cfb98a
rearchitecture of the way time is kept:

-no longer relies on rdtsc. Time is incremented by the timer interrupt.
-architectures with high resolution cycle counters (x86, ppc) can get higher resolution
from system_time(). Otherwise the resolution is as much as the system timer interrupt (5ms)
-added kernel/time.c (gettimeofday and other fun things will go here)
-moved system_time and friends to time.c

git-svn-id: svn+ssh://newos.org/var/svn/newos/newos@1023 c25cc9d1-44fa-0310-b259-ad778cb1d433
28 files changed:
boot/i386/smp_boot.c
boot/i386/stage2.c
include/boot/arch/i386/stage2.h
include/kernel/arch/cpu.h
include/kernel/arch/i386/cpu.h
include/kernel/arch/i386/smp_priv.h
include/kernel/arch/time.h [new file with mode: 0644]
include/kernel/arch/timer.h
include/kernel/time.h [new file with mode: 0644]
kernel/arch/i386/arch_i386.S
kernel/arch/i386/arch_smp.c
kernel/arch/i386/arch_time.c [new file with mode: 0644]
kernel/arch/i386/arch_timer.c
kernel/arch/i386/makefile
kernel/cpu.c
kernel/dev/beos.c
kernel/main.c
kernel/makefile
kernel/net/arp.c
kernel/net/ipv4.c
kernel/net/net_timer.c
kernel/net/tcp.c
kernel/syscalls.c
kernel/thread.c
kernel/time.c [new file with mode: 0644]
kernel/timer.c
kernel/vm/vm.c
kernel/vm/vm_daemons.c