Set the TSC type due to configured architecture
PATCH 1/1 Set the TSC type due to configured architecture
Hi Gilles,
I plan to implement the new userspace TSC feature for decrementing timers but stumbled across CONFIG_XENO_ARM_HW_DIRECT_TSC set to 1 independent from the configured ARM architecture. See the attached patches for Adeos and Xenomai for a possible solution.
Signature · 1 line
Sebastian
asm-arm/features.h +1 -1
@@ -34,7 +34,7 @@#define CONFIG_XENO_ARM_EABI 1#endif -#define CONFIG_XENO_ARM_HW_DIRECT_TSC 1 +#define CONFIG_XENO_ARM_HW_DIRECT_TSC CONFIG_IPIPE_ARM_TSC_TYPE#else /* !__KERNEL__ */ #define __LINUX_ARM_ARCH__ CONFIG_XENO_ARM_ARCH
kernel/ipipe/Kconfig +6 -0
@@ -4,3 +4,9 @@ config IPIPE ---help--- Activate this option if you want the interrupt pipeline to be compiled in. + +config IPIPE_ARM_TSC_TYPE + int + depends on IPIPE && ARM + default 1 if ARCH_PXA || ARCH_SA1100 || ARCH_IXP4XX || ARCH_AT91 + default 0
Quoted 6 lines · Sebastian Smolorz
Hi Gilles,
I plan to implement the new userspace TSC feature for decrementing timers but stumbled across
CONFIG_XENO_ARM_HW_DIRECT_TSCset to 1 independent from the configured ARM architecture. See the attached patches for Adeos and Xenomai for a possible solution.
I do not remember what I did. But I'd say everything is planned so that you can add your implementation. I think the place where this happens is include/asm-arm/syscall.h
Signature · 1 line
Gilles Chanteperdrix
Quoted 11 lines · Gilles Chanteperdrix
Quoted 6 lines · Sebastian Smolorz
Hi Gilles,
I plan to implement the new userspace TSC feature for decrementing timers but stumbled across
CONFIG_XENO_ARM_HW_DIRECT_TSCset to 1 independent from the configured ARM architecture. See the attached patches for Adeos and Xenomai for a possible solution.I do not remember what I did. But I'd say everything is planned so that you can add your implementation. I think the place where this happens is
include/asm-arm/syscall.h
The tsc feature is considered always supported by kernel-space. The selection in user-space happens in configure.in.
Signature · 1 line
Gilles Chanteperdrix
Quoted 9 lines · Gilles Chanteperdrix
Quoted 8 lines · Gilles Chanteperdrix
Quoted 6 lines · Sebastian Smolorz
Hi Gilles,
I plan to implement the new userspace TSC feature for decrementing timers but stumbled across
CONFIG_XENO_ARM_HW_DIRECT_TSCset to 1 independent from the configured ARM architecture. See the attached patches for Adeos and Xenomai for a possible solution.
Quoted 6 lines
Quoted 3 lines
I do not remember what I did. But I'd say everything is planned so that you can add your implementation. I think the place where this happens is
include/asm-arm/syscall.hThe tsc feature is considered always supported by kernel-space. The selection in user-space happens in configure.in.
Yes, of course. Forget about the patch.
Signature · 1 line
Sebastian