Skip to contentSkip to conversation

Set the TSC type due to configured architecture

PATCH In review Sebastian Smolorz 2 participants 4 messages Jul 19, 2007

lore
Share & tools
lore
#0 lore raw

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
Index: include/asm-arm/features.h
===================================================================
@@ -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
index 1f46f07..d9580c7 100644
@@ -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
#1 lore raw
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_TSC set 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
#2 lore raw
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_TSC set 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
#3 lore raw
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_TSC set 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.h

The 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