lkml.org 
[lkml]   [2009]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
SubjectBogoMIPS drops to 2/3 when CONFIG_MODULES is not set for an ARMv6 SoC platform
Hi,

I encountered an interesting problem when I was porting the latest Linux kernel to our ARM11 based SoC.

I turned off the CONFIG_MODULES configuration option and the BogoMIPS drop to only 2/3 of the original number.

With the same kernel source code, when CONFIG_MODULES is turned on.
-----------------------
# cat /proc/cpuinfo
Processor : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 499.71
Features : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7

when CONFIG_MODULES is turned off.
# cat /proc/cpuinfo
Processor : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 332.59
Features : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7

The only difference between my two builds is the CONFIG_MODULES option.
--- .config.old 2009-06-24 16:32:21.000000000 -0700
+++ .config 2009-06-25 10:59:26.000000000 -0700
@@ -100,12 +99,7 @@
CONFIG_HAVE_GENERIC_DMA_COHERENT=y
CONFIG_RT_MUTEXES=y
CONFIG_BASE_SMALL=0
-CONFIG_MODULES=y
-# CONFIG_MODULE_FORCE_LOAD is not set
-CONFIG_MODULE_UNLOAD=y
-# CONFIG_MODULE_FORCE_UNLOAD is not set
-# CONFIG_MODVERSIONS is not set
-# CONFIG_MODULE_SRCVERSION_ALL is not set
+# CONFIG_MODULES is not set
CONFIG_BLOCK=y
CONFIG_LBDAF=y
# CONFIG_BLK_DEV_BSG is not set
Both the 2.6.30 and 2.6.27.18 kernel present the same problem.

Does anyone notice this interesting problem? If yes, what's the explanation? Why the BogoMIPS drops so much with just one configuration option.

Thanks,

Leo Chen
Software Engineer
Broadcom Canada


\
 
 \ /
  Last update: 2009-06-25 20:09    [W:0.044 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site