Message-ID: <51124A06.3020205@xenomai.org> Date: Wed, 06 Feb 2013 13:18:14 +0100 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <51122E82.6050209@siemens.com> In-Reply-To: <51122E82.6050209@siemens.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] i8253 clocksource vs. rthal_get_8254_tsc List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Xenomai On 02/06/2013 11:20 AM, Jan Kiszka wrote: > Hi Gilles, > > I just realized that there is now a 8253 clocksource in core-3.4+. How > does this work together with Xenomai's TSC emulation via the 8254 in the > x86 hal_32? Xenomai reprograms the PIT in rthal_setup_8254_tsc - is this > harmless? > > I came across this while trying to get rid of Xenomai's "depends on > !INPUT_PCSPKR" to avoid that circular Kbuild dependency. This emulation replaces Xenomai's TSC emulation when the kernel boots on a cpu without a TSC: the detection is made at run-time instead of compilation time using self-modifying code (this in order to be able to build Debian kernels which boots with any configuration). There is no reason to keep the compilation-time dependency on !INPUT_PCSPKR with I-pipe core, as now the pc speaker is disabled at run-time too. Unfortunately, I could not find how to arrange the Kconfig either. -- Gilles.