summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti-staging/0005-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch
blob: 8e016b4b4aa127be058c92a6186542f0ea55bf08 (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 2f6cbe000b1d31c91eee0248f24b0c306aadeb63 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 2/2] 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 a34b45a..bb6beb2 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_PREEMPT_VOLUNTARY=y
 CONFIG_CMA=y
 CONFIG_ZBOOT_ROM_TEXT=0x0
-- 
1.8.3.2