kernel: Leave LESS_GCC_OPT off by default
Jeff Smith [Wed, 3 Oct 2012 20:56:55 +0000 (13:56 -0700)]
Change-Id: Ic8bbc5bbf9ef9cff65d93b14a655df1bdc7cd691
Signed-off-by: Jeff Smith <jsmith@nvidia.com>
Reviewed-on: http://git-master/r/141352
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit

lib/Kconfig.debug

index 924a70c..cdf48bb 100644 (file)
@@ -152,8 +152,12 @@ config DEBUG_KERNEL
 config LESS_GCC_OPT
        bool "Compile with -O1 for debugging"
        depends on DEBUG_KERNEL
-       default y if TEGRA_SIMULATION_PLATFORM
-       default n if !TEGRA_SIMULATION_PLATFORM
+       default n
+       help
+         Enable this if you are using a source level debugger and
+         experience poor correlation between the program counter
+         and the source display.  This will reduce kernel peformance
+         and is only used when debugging.
 
 config DEBUG_SHIRQ
        bool "Debug shared IRQ handlers"