in the clock drivers, seperate the soft-state and hard-state which was
authorderaadt <deraadt@openbsd.org>
Sun, 25 Jul 2010 21:43:35 +0000 (21:43 +0000)
committerderaadt <deraadt@openbsd.org>
Sun, 25 Jul 2010 21:43:35 +0000 (21:43 +0000)
commit94ce667781f20302b1db949e69f2585605e57366
tree6fcf9751c59ef91f18191c9c3b5dd5f9bbe23284
parentde69aea0de1ac4afeac01e7df1bff2b47488aaad
in the clock drivers, seperate the soft-state and hard-state which was
all jumbled up in the same functions. the rtc (mc chip) and clock (i8243)
startup was also mixed up.  they the soft state and hardware state can
be started in the right order, and it is easy to restart just the
neccessary parts upon resume.  tested in numerous cases:
(apic, pic) * (GENERIC.MP, GENERIC) * (mp, non-mp) * (i386, amd64)
ok kettenis
17 files changed:
sys/arch/amd64/amd64/acpi_machdep.c
sys/arch/amd64/amd64/autoconf.c
sys/arch/amd64/amd64/cpu.c
sys/arch/amd64/amd64/lapic.c
sys/arch/amd64/amd64/machdep.c
sys/arch/amd64/include/cpu.h
sys/arch/amd64/include/i82489var.h
sys/arch/amd64/isa/clock.c
sys/arch/i386/i386/acpi_machdep.c
sys/arch/i386/i386/apm.c
sys/arch/i386/i386/autoconf.c
sys/arch/i386/i386/cpu.c
sys/arch/i386/i386/lapic.c
sys/arch/i386/i386/machdep.c
sys/arch/i386/include/cpu.h
sys/arch/i386/include/i82489var.h
sys/arch/i386/isa/clock.c