Vortex86SX and TSC
Hello,
I'm trying to port my application from the DiamonSystems Hercules II SBC (with VIA C3 CPU) to the DiamonSystems Helios SBC (with Vortex86SX CPU).
The application contains one RT task running at 50 kHz and three RT
tasks running at 2kHz. One iteration of the first task takes 15 us to complete. Measured latencies on the Vortex86 CPU are about 40us with max 56us, on the VIA C3 CPU are about 7us. Vortex86SX is 486 compatible, so Xenomai is built without TSC support, but CPUID claims the the it supports TSC. Is there a way to get kernel part of Xenomai to use TSC?
Thanks in adavance.
--
WBR,
Max Vasin.
Quoted 10 lines · Max Vasin
Hello,
I'm trying to port my application from the DiamonSystems Hercules II SBC (with VIA C3 CPU) to the DiamonSystems Helios SBC (with Vortex86SX CPU).
The application contains one RT task running at 50 kHz and three RT
tasks running at 2kHz. One iteration of the first task takes 15 us to complete. Measured latencies on the Vortex86 CPU are about 40us with max 56us, on the VIA C3 CPU are about 7us. Vortex86SX is 486 compatible, so Xenomai is built without TSC support, but CPUID claims the the it supports TSC. Is there a way to get kernel part of Xenomai to use TSC?
Xenomai uses TSC if Linux configuration option is enabled. So, to enable the use of TSC, you will have to modify arch/x86/Kconfig.cpu.
The quick and dirty way would be to add M486 to the long "depends on" list of the X86_TSC option.
Signature · 1 line
Gilles.