Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S269028AbUJQDYr (ORCPT ); Sat, 16 Oct 2004 23:24:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S269029AbUJQDYr (ORCPT ); Sat, 16 Oct 2004 23:24:47 -0400 Received: from clock-tower.bc.nu ([81.2.110.250]:38098 "EHLO localhost.localdomain") by vger.kernel.org with ESMTP id S269028AbUJQDYp (ORCPT ); Sat, 16 Oct 2004 23:24:45 -0400 Subject: Re: High pitched noise from laptop: processor.c in linux 2.6 From: Alan Cox To: Lee Revell Cc: Pavel Machek , M , Linux Kernel Mailing List In-Reply-To: <1097976283.2148.34.camel@krustophenia.net> References: <41650CAF.1040901@unimail.com.au> <20041007103210.GA32260@atrey.karlin.mff.cuni.cz> <20041007143245.GA1698@openzaurus.ucw.cz> <1097956343.2148.17.camel@krustophenia.net> <1097963167.13226.4.camel@localhost.localdomain> <1097976283.2148.34.camel@krustophenia.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1097979705.13269.9.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Sun, 17 Oct 2004 03:21:46 +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1067 Lines: 26 On Sul, 2004-10-17 at 02:24, Lee Revell wrote: > > And heavily reduced accuracy on a lot of laptops where 1000Hz > > is enough to make the clock slide every time the battery state is > > queried or an SMM event triggers. > Wouldn't such a laptop be horribly broken? 1ms is a LONG time to > disable interrupts. That's millions of CPU cycles... Yes, and most laptops have this problem. They use SMM traps to talk to the battery including huge delay loops and during those SMM traps no interrupt code runs. > > Getting the best of both worlds depends on the stuff discussed at OLS > > being finished, then you can have 1Khz accurancy and battery life > I was not there but I imagine this involves a way to get 1khz accuracy > with a 100Hz timer interrupt rate? Think about add_timeout(timer, when, precision_desired) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/