Skip to contentSkip to conversation

ARM: enable CONFIG_KTIME_SCALAR

PATCH New Rob Herring 1 participant 1 message Mar 1, 2011 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: enable CONFIG_KTIME_SCALAR

From: Rob Herring <[email protected]>

Use straight 64-bit values as 64-bit operations are fairly efficient on ARM. Comparing the asm output with and without KTIME_SCALAR, using 64-bit math generates clearly better code.

Comparing kernel/hrtimer.c .text size, it goes from 0x1414 to 0x119c with this change.

---
 arch/arm/Kconfig |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
arch/arm/Kconfig +4 -0
index 166efa2..0efbea4 100644
@@ -63,6 +63,10 @@ config GENERIC_CLOCKEVENTS_BROADCAST
 	depends on GENERIC_CLOCKEVENTS
 	default y if SMP
 
+config KTIME_SCALAR
+	bool
+	default y
+
 config HAVE_TCM
 	bool
 	select GENERIC_ALLOCATOR
Signature · 1 line
1.7.1