From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <47F64EC5.3090007@domain.hid> Date: Fri, 04 Apr 2008 17:52:37 +0200 From: Philippe Gerum MIME-Version: 1.0 References: <20080402012645.506e53ef.Cornelius.Koepp@domain.hid> <47F551AD.9030509@domain.hid> <47F5E57C.6020309@domain.hid> <47F606AE.6080800@domain.hid> <2ff1a98a0804040618r2717c5efrb852bcbc76e6bd0c@domain.hid> <47F62C46.4080003@domain.hid> <2ff1a98a0804040632w391afda4rf30c8ca09fbb0874@domain.hid> <47F633B7.70003@domain.hid> <2ff1a98a0804040709m51a8db6lc23e1714497f824c@domain.hid> <47F63C37.60307@domain.hid> <2ff1a98a0804040848w44037164n18ea4d61f38ffa51@domain.hid> In-Reply-To: <2ff1a98a0804040848w44037164n18ea4d61f38ffa51@domain.hid> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: Philippe Gerum Subject: Re: [Xenomai-core] latencys drifting into negative (Xenomai 2.4.2/2.4.3) Reply-To: rpm@xenomai.org List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: Jan Kiszka , xenomai-core , =?ISO-8859-1?Q?Cornelius_K=F6pp?= Gilles Chanteperdrix wrote: > On Fri, Apr 4, 2008 at 4:33 PM, Jan Kiszka wrote: >> Gilles Chanteperdrix wrote: >> >>> Right. We are approximating a fraction with another fraction. But my >>> first impression remains: I do not like the idea of making >>> xnarch_ns_to_tsc wrong because xnarch_tsc_to_ns is wrong. >>> >> Well, my first impression was originally the same: If we still need llimd >> in the ns-to-tsc patch, then we should keep the precise way. But that was >> wrong as this thread demonstrated. We have to ensure that >> ns_to_tsc(tsc_to_ns(x)) remains x with only minor last-digit errors. So >> either use scaled math parameters in both ways or fall back to the original >> calculation. > > Now that I think about it, this scaled math approach is about taking > an approximation of the CPU frequency, which is already approximative. > So, I will not oppose longer to your patch. > Ok, so I take this for a green light to commit too. Please commit. >> However the final decision for 2.5 is (pro or contra scaled math), at least >> for 2.4.x we have to fix things now without turning the upside down. That >> means apply my patch or revert scaled-math optimizations for all archs. > > > -- Philippe.