freebsd-skq/sys/ia64/include
Marcel Moolenaar e920e3978e Switch to the event timers infrastructure. This includes:
o   Setting td_intr_frame to the XIVs trap frame because it's referenced
    by the ET event handler.
o   Signal EOI to the CPU before calling the registered XIV handlers.
    This prevents lost ITC interrupts, which cause starvation in one-shot
    mode.
o   Adding support for IPI_HARDCLOCK with corresponding per-CPU counters.
o   Have the APs call cpu_initclocks() so as to limited the scattering of
    clock related initialization. cpu_initclocks() calls the <self>_bsp()
    or <self>_ap() version accordingly.
o   Uncomment the ET clock handling in cpu_idle().
o   Update the DDB 'show pcpu' output for the new MD fields.
o   Entirely rewritten ia64_ih_clock(). Note that we don't create as many
    clock XIVs as we have CPUs, as is done on PowerPC. It doesn't scale.
    We can only have 240 XIVs and we can have more CPUs than that. There's
    a single intrcnt index for the cumulative clock ticks and we keep per
    CPU counts in the PCPU stats structure.
o   Register the ITC by hooking SI_SUB_CONFIGURE (2nd order).

Open issues:
o   Clock interrupts can still be lost. Some tweaking is still necessary.

Thanks to: mav@ for his support, feedback and explanations.

ET stats while committing:
eris% sysctl machdep.cpu | grep nclks

machdep.cpu.0.nclks: 24007
machdep.cpu.1.nclks: 22895
machdep.cpu.2.nclks: 13523
machdep.cpu.3.nclks: 9342
machdep.cpu.4.nclks: 9103
machdep.cpu.5.nclks: 9298
machdep.cpu.6.nclks: 10039
machdep.cpu.7.nclks: 9479
eris% vmstat -i | grep clock
clock                      108599         50
2011-06-25 02:15:14 +00:00
..
pc
_align.h
_bus.h
_inttypes.h
_limits.h
_regset.h
_stdint.h On mixed 32/64 bit architectures (mips, powerpc) use __LP64__ rather than 2011-01-08 12:43:05 +00:00
_types.h Commit the support for removing cpumask_t and replacing it directly with 2011-05-05 14:39:14 +00:00
acpica_machdep.h
asm.h
atomic.h
bootinfo.h Use the new arch_loadaddr I/F to align ELF objects to PBVM page 2011-04-03 23:49:20 +00:00
bus_dma.h
bus.h
clock.h
cpu.h
cpufunc.h
db_machdep.h
dig64.h
efi.h Fix switching to physical mode as part of calling into EFI runtime 2011-03-21 18:20:53 +00:00
elf.h
endian.h
exec.h
float.h The highest-precision floating point type on ia64 has 64 bits of 2011-01-09 06:05:02 +00:00
floatingpoint.h
fpu.h
frame.h
gdb_machdep.h
ia64_cpu.h Properly serialize the global shootdown with the instruction 2011-06-17 04:26:03 +00:00
ieee.h
ieeefp.h
in_cksum.h
intr.h
intrcnt.h
iodev.h
kdb.h
limits.h
mca.h
md_var.h o Deal with unmapped PBVM in the alternate instruction and data TLB fault 2011-03-14 05:29:45 +00:00
memdev.h Add reader/writer lock around mem_range_attr_get() and mem_range_attr_set(). 2011-01-17 22:58:28 +00:00
pal.h Fix switching to physical mode as part of calling into EFI runtime 2011-03-21 18:20:53 +00:00
param.h
pcb.h
pci_cfgreg.h
pcpu.h Switch to the event timers infrastructure. This includes: 2011-06-25 02:15:14 +00:00
pmap.h Remove prototypes of non-existent functions. 2011-04-25 22:38:09 +00:00
pmc_mdep.h
proc.h
profile.h
pte.h
ptrace.h
reg.h
reloc.h
resource.h
runq.h
sal.h
setjmp.h
sf_buf.h
sigframe.h
signal.h
smp.h Switch to the event timers infrastructure. This includes: 2011-06-25 02:15:14 +00:00
stdarg.h
sysarch.h
ucontext.h
unwind.h
varargs.h
vm.h
vmparam.h Move the ZERO_REGION_SIZE to a machine-dependent file, as on many 2011-05-13 19:35:01 +00:00