Re: Fighting for the power.

Lucius Windschuh <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile,gmane.os.freebsd.current
Message-ID <[email protected]>
2009/5/5 Alexander Motin <[email protected]>:
> 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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.