Skip to content

Commit

Permalink
ARM: 6786/1: enable CONFIG_KTIME_SCALAR
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Rob Herring authored and Russell King committed Mar 9, 2011
1 parent 1cf7cf0 commit bf9dd36
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf9dd36

Please sign in to comment.