Date: Fri, 28 Oct 2005 06:47:27 -0700 From: Colin Percival <cperciva@freebsd.org> To: Alexander Leidinger <Alexander@Leidinger.net> Cc: Poul-Henning Kamp <phk@phk.freebsd.dk>, current@freebsd.org Subject: Re: TSC instead of ACPI: powerd doesn't work anymore (to be expected?) Message-ID: <43622BEF.3030006@freebsd.org> In-Reply-To: <20051028153457.d0wqgn2ask4sgw4k@netchild.homeip.net> References: <30595.1130493297@critter.freebsd.dk> <20051028153457.d0wqgn2ask4sgw4k@netchild.homeip.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Alexander Leidinger wrote: > Poul-Henning Kamp <phk@phk.freebsd.dk> wrote: >> In general, if you run powerd to change your cpu clock (= TSC >> frequency), using TSC as timecounter is _not_ what you want to do. > > Is it not possible to recalibrate on frequency change, or is it "just" that > nobody wrote the code do to it? It's not possible in any useful way. When power management code changes the TSC frequency, it doesn't change the frequency directly; instead, it sends a message to the CPU saying "please, if you feel like it, could you change your frequency to <foo> some time soon?" Even if you manage to handle the change in frequency, the timecounter would significantly lose accuracy due to not knowing exactly when the change in frequency occurred. Colin Percival
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43622BEF.3030006>