DragonFly-2.3.0.864.gc5b83 master sys/platform/pc32/apic mpapic.c sys/platform/pc32/isa clock.c sys/platform/pc64/isa clock.c sys/platform/vkernel/platform systimer.c sys/sys systimer.h
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Sat May 2 06:58:24 PDT 2009
commit c5b8324c6c58ebc3b5ff32519f4d7fc199f5399a
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date: Sat May 2 17:41:23 2009 +0800
lapic timer: Finish the lapic timer support
- Add lapic_timer_process_oncpu(), which fires per-cpu systimer queue.
- Add lapic_timer_intr_reload(), which restart/start lapic timer.
- Change cputimer_intr_reload to function pointer, so it could be
overridden when needed. It is original cputimer_intr_reload function
on amd64 and vkernel. On i386, APIC initialization will set it to
lapic_timer_intr_reload if lapic_timer_enable tunable is set to 1,
else i8254_intr_reload (origial cputimer_intr_reload) will be used.
- If lapic_timer_enable is 1, then don't try to register "clk" interrupt
handler at all.
As of this commit, lapic timer support is done. It is not enabled by
default, set 'hw.lapci_timer_enable' to enable it.
Summary of changes:
sys/platform/pc32/apic/mpapic.c | 58 +++++++++++++++++++++++++----
sys/platform/pc32/isa/clock.c | 25 ++++++++++---
sys/platform/pc64/isa/clock.c | 8 +++-
sys/platform/vkernel/platform/systimer.c | 7 +++-
sys/sys/systimer.h | 2 +-
5 files changed, 81 insertions(+), 19 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c5b8324c6c58ebc3b5ff32519f4d7fc199f5399a
--
DragonFly BSD source repository
More information about the Commits
mailing list