summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti-staging/0001-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch
blob: a389e5c65ce549284212cce9044557360fdd5532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
From bd9c0b09db8798815cb577f82beebf7e6c03edcd Mon Sep 17 00:00:00 2001
From: Santosh Shilimkar <santosh.shilimkar@ti.com>
Date: Thu, 13 Feb 2014 08:52:41 -0500
Subject: [PATCH] Not-for-merge: ARM: config: omap: Disable SMP for AM335x
 build

SMP and SMP_ON_UP introduces some extra barriers and code many fast paths
including kernel lock functions.

Performance sensitive usecases like networking gets impacted because of this.
In typical production kernel which is targeted for single core device
like AM335x family, you don't want to take this hit.

Ideally one should just create a device specific config feed as done by all
typical distro's. Other option is to apply this specifically during build
time using recipe.

Whichever option, one definitely don't want this overhead for performance
critical usecases.

Disabling SMP in the build introduces one warining in cpuidle44xx.c driver
and fix is included in the series

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
 arch/arm/configs/omap2plus_defconfig | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
index ff579a7..25217e3 100644
--- a/arch/arm/configs/omap2plus_defconfig
+++ b/arch/arm/configs/omap2plus_defconfig
@@ -36,8 +36,6 @@ CONFIG_OMAP4_ERRATA_I688=y
 CONFIG_ARM_THUMBEE=y
 CONFIG_ARM_ERRATA_411920=y
 CONFIG_PCIE_DRA7XX=y
-CONFIG_SMP=y
-CONFIG_NR_CPUS=2
 CONFIG_CMA=y
 CONFIG_PREEMPT_VOLUNTARY=y
 CONFIG_LEDS=y
-- 
1.8.3.2