From owner-freebsd-current@FreeBSD.ORG Mon May 4 23:22:14 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73C261065670; Mon, 4 May 2009 23:22:14 +0000 (UTC) (envelope-from lwindschuh@googlemail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.28]) by mx1.freebsd.org (Postfix) with ESMTP id 021FF8FC0A; Mon, 4 May 2009 23:22:13 +0000 (UTC) (envelope-from lwindschuh@googlemail.com) Received: by yw-out-2324.google.com with SMTP id 9so2565429ywe.13 for ; Mon, 04 May 2009 16:22:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=/+7aw/hSDt4QIlNIrJ+kZflW/Puzna+vtSKkbc1k8Jo=; b=TU+0DRkQAbftx1t01/C8xbFf/jlKPVPhIRo5DJXS4tD3/rRFnhqiuj7GXghghKC+VK c4GYdWMxBXhM+pKc/NZWJepIYxT/KQPootSMH8taOEUO503rayEVv2LX1i0SsuM4hZcN oB3xTFj4DYfK6DNtx8hfTNJevqg0NiBuOEQx8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=WyVkCZUvcWWnr8nk98F1u1fCVuUfzH0NpZsLcMDIC0DUA71+i3cUL+0HzoZ2EBVogM ymt5pbOiRELLFo/mEQgiYZAcoS6jTFnZqTl2bRHRMyAI30H3/pWgk3ZDcBw769+weQFN hOEe5Oqx9VR2jGTMjdqu8C681aitf5KhUreZE= MIME-Version: 1.0 Received: by 10.151.101.20 with SMTP id d20mr13084900ybm.14.1241479333020; Mon, 04 May 2009 16:22:13 -0700 (PDT) In-Reply-To: <49FF6C11.5030607@FreeBSD.org> References: <49FE1826.4060000@FreeBSD.org> <90a5caac0905041119h70101d12i56863e57b27d2e55@mail.gmail.com> <49FF6C11.5030607@FreeBSD.org> Date: Tue, 5 May 2009 01:22:12 +0200 Message-ID: <90a5caac0905041622oaddd7cek52f28a9b018b3ea7@mail.gmail.com> From: Lucius Windschuh To: Alexander Motin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: Fighting for the power. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 May 2009 23:22:14 -0000 2009/5/5 Alexander Motin : > Lucius Windschuh wrote: >> [...] >> panic: lapic1: zero divisor > [...] > --- local_apic.c.prev =A0 2009-05-01 23:53:37.000000000 +0300 > +++ local_apic.c =A0 =A0 =A0 =A02009-05-05 01:10:04.000000000 +0300 > @@ -319,7 +319,7 @@ lapic_setup(int boot) > =A0 =A0 =A0 =A0} > > =A0 =A0 =A0 =A0/* We don't setup the timer during boot on the BSP until l= ater. */ > - =A0 =A0 =A0 if (!(boot && PCPU_GET(cpuid) =3D=3D 0)) { > + =A0 =A0 =A0 if (!(boot && PCPU_GET(cpuid) =3D=3D 0) && lapic_timer_hz != =3D 0) { > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0KASSERT(lapic_timer_period !=3D 0, ("lapic= %u: zero divisor", > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0lapic_id())); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0lapic_timer_set_divisor(lapic_timer_diviso= r); This patch solves the panic. C3 instead of C2 saves between 0.5 and 1.5 Watt here with some quick measurements. Thanks. Lucius