summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/regexec.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2009-05-01 17:05:49 +0000
committermav <mav@FreeBSD.org>2009-05-01 17:05:49 +0000
commit364f1b1af00c2b41d21e61843b6a05aace8247e7 (patch)
tree8ca34a2f3317adc2d6844c629e5440bf1e45ef15 /lib/libc/regex/regexec.c
parentdca50049ce746bdf7f10117a8dd8d72c8282585c (diff)
downloadFreeBSD-src-364f1b1af00c2b41d21e61843b6a05aace8247e7.zip
FreeBSD-src-364f1b1af00c2b41d21e61843b6a05aace8247e7.tar.gz
Use value -1 instead of 0 for marking unused APIC vectors. This fixes
IRQ0 routing on LAPIC-enabled systems. Add hint.apic.0.clock tunable. Setting it 0 disables using LAPIC timers as hard-/stat-/profclock sources falling back to using i8254 and rtc timers. On modern CPUs LAPIC is a part of CPU core which is shutting down when CPU enters C3 or deeper power state. It makes no problems for interrupt processing, as chipset wakes up CPU on interrupt triggering. But entering C3 state kills LAPIC timer and freezes system time, making C3 and deeper states practically unusable. Using i8254 timer allows to avoid this problem. By using i8254 timer my T7700 C2D CPU with UP kernel successfully enters C3 state, saving more then a Watt of total idle power (>10%) in addition to all other power-saving techniques. This technique is not working for SMP yet, as only one CPU receives timer interrupts. But I think that problem could be fixed by forwarding interrupts to other CPUs with IPI.
Diffstat (limited to 'lib/libc/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud