Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S269340AbUJWBYZ (ORCPT ); Fri, 22 Oct 2004 21:24:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S269347AbUJWBUa (ORCPT ); Fri, 22 Oct 2004 21:20:30 -0400 Received: from ozlabs.org ([203.10.76.45]:1471 "EHLO ozlabs.org") by vger.kernel.org with ESMTP id S269538AbUJWAeM (ORCPT ); Fri, 22 Oct 2004 20:34:12 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16761.42743.34328.919506@cargo.ozlabs.ibm.com> Date: Sat, 23 Oct 2004 10:33:59 +1000 From: Paul Mackerras To: Nishanth Aravamudan Cc: Benjamin Herrenschmidt , Linus Torvalds , Linux Kernel Mailing List Subject: Re: [PATCH] pmac_cpufreq msleep cleanup/fixes In-Reply-To: <20041022234344.GI18906@us.ibm.com> References: <200410221906.i9MJ63Ai022889@hera.kernel.org> <1098484616.6028.80.camel@gaston> <1098487053.6029.89.camel@gaston> <20041022234344.GI18906@us.ibm.com> X-Mailer: VM 7.18 under Emacs 21.3.1 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 917 Lines: 21 Nishanth Aravamudan writes: > Looks good to me... And makes quite a bit of sense, after I thought > about it. Does feel a little hacky, but I don't see a slicker way around > the problem... We would need a platform-specific function to tell us how long until the next jiffy to do any better, I think, and even then it would only make much of a difference if HZ was significantly smaller than 1000. We could do the how-long-until-next-jiffy function quite easily and quickly on ppc and ppc64, just by reading the decrementer register and scaling it. I don't know about other architectures. But if we are mostly using HZ=1000 there doesn't seem to be much point. Paul. - 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/