Fighting for the power.
Lucius Windschuh
lwindschuh at googlemail.com
Mon May 4 23:22:14 UTC 2009
2009/5/5 Alexander Motin <mav at freebsd.org>:
> Lucius Windschuh wrote:
>> [...]
>> panic: lapic1: zero divisor
> [...]
> --- local_apic.c.prev 2009-05-01 23:53:37.000000000 +0300
> +++ local_apic.c 2009-05-05 01:10:04.000000000 +0300
> @@ -319,7 +319,7 @@ lapic_setup(int boot)
> }
>
> /* We don't setup the timer during boot on the BSP until later. */
> - if (!(boot && PCPU_GET(cpuid) == 0)) {
> + if (!(boot && PCPU_GET(cpuid) == 0) && lapic_timer_hz != 0) {
> KASSERT(lapic_timer_period != 0, ("lapic%u: zero divisor",
> lapic_id()));
> lapic_timer_set_divisor(lapic_timer_divisor);
This patch solves the panic.
C3 instead of C2 saves between 0.5 and 1.5 Watt here with some quick
measurements.
Thanks.
Lucius
More information about the freebsd-mobile
mailing list