* [PATCH 1/5] ARM: include missing cp15.h header
2014-09-30 1:35 [PATCH 0/5] ARM: move #include <asm/cp15.h> into cacheflush.h Brian Norris
@ 2014-09-30 1:35 ` Brian Norris
2014-09-30 1:35 ` [PATCH 2/5] ARM: mvebu: drop unnecessary include Brian Norris
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Brian Norris @ 2014-09-30 1:35 UTC (permalink / raw)
To: linux-arm-kernel
As of this commit:
commit 39792c7cf3111d69dc4aa0923859d8b929e9039f
ARM: 7861/1: cacheflush: consolidate single-CPU ARMv7 cache disabling code
cacheflush.h now utilizes the CR_C macro from cp15.h. Let's include it.
This also means several users of v7_exit_coherency_flush() no longer
have to include cp15.h directly when they don't directly use any #defines
from it.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
---
arch/arm/include/asm/cacheflush.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/include/asm/cacheflush.h b/arch/arm/include/asm/cacheflush.h
index 79ecb4f34ffb..866e229d3129 100644
--- a/arch/arm/include/asm/cacheflush.h
+++ b/arch/arm/include/asm/cacheflush.h
@@ -16,6 +16,7 @@
#include <asm/shmparam.h>
#include <asm/cachetype.h>
#include <asm/outercache.h>
+#include <asm/cp15.h>
#define CACHE_COLOUR(vaddr) ((vaddr & (SHMLBA - 1)) >> PAGE_SHIFT)
--
1.9.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 2/5] ARM: mvebu: drop unnecessary include
2014-09-30 1:35 [PATCH 0/5] ARM: move #include <asm/cp15.h> into cacheflush.h Brian Norris
2014-09-30 1:35 ` [PATCH 1/5] ARM: include missing cp15.h header Brian Norris
@ 2014-09-30 1:35 ` Brian Norris
2014-09-30 1:35 ` [PATCH 3/5] ARM: rockchip: " Brian Norris
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Brian Norris @ 2014-09-30 1:35 UTC (permalink / raw)
To: linux-arm-kernel
<asm/cp15.h> is only being included because of the implicit requirements
of v7_exit_coherency_flush(). Now that the implicit include is provided
for us, we can drop it from our explicit list.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Gregory Clement <gregory.clement@free-electrons.com>
Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
---
arch/arm/mach-mvebu/pmsu.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/mach-mvebu/pmsu.c b/arch/arm/mach-mvebu/pmsu.c
index 8a70a51533fd..2d283cbc5cc7 100644
--- a/arch/arm/mach-mvebu/pmsu.c
+++ b/arch/arm/mach-mvebu/pmsu.c
@@ -33,7 +33,6 @@
#include <linux/slab.h>
#include <linux/smp.h>
#include <asm/cacheflush.h>
-#include <asm/cp15.h>
#include <asm/smp_scu.h>
#include <asm/smp_plat.h>
#include <asm/suspend.h>
--
1.9.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 3/5] ARM: rockchip: drop unnecessary include
2014-09-30 1:35 [PATCH 0/5] ARM: move #include <asm/cp15.h> into cacheflush.h Brian Norris
2014-09-30 1:35 ` [PATCH 1/5] ARM: include missing cp15.h header Brian Norris
2014-09-30 1:35 ` [PATCH 2/5] ARM: mvebu: drop unnecessary include Brian Norris
@ 2014-09-30 1:35 ` Brian Norris
2014-09-30 1:35 ` [PATCH 4/5] ARM: vexpress: " Brian Norris
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Brian Norris @ 2014-09-30 1:35 UTC (permalink / raw)
To: linux-arm-kernel
<asm/cp15.h> is only being included because of the implicit requirements
of v7_exit_coherency_flush(). Now that the implicit include is provided
for us, we can drop it from our explicit list.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: linux-rockchip at lists.infradead.org
---
arch/arm/mach-rockchip/platsmp.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/mach-rockchip/platsmp.c b/arch/arm/mach-rockchip/platsmp.c
index 189684f55927..9b72e84e6494 100644
--- a/arch/arm/mach-rockchip/platsmp.c
+++ b/arch/arm/mach-rockchip/platsmp.c
@@ -21,7 +21,6 @@
#include <linux/of_address.h>
#include <asm/cacheflush.h>
-#include <asm/cp15.h>
#include <asm/smp_scu.h>
#include <asm/smp_plat.h>
#include <asm/mach/map.h>
--
1.9.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 4/5] ARM: vexpress: drop unnecessary include
2014-09-30 1:35 [PATCH 0/5] ARM: move #include <asm/cp15.h> into cacheflush.h Brian Norris
` (2 preceding siblings ...)
2014-09-30 1:35 ` [PATCH 3/5] ARM: rockchip: " Brian Norris
@ 2014-09-30 1:35 ` Brian Norris
2014-09-30 1:35 ` [PATCH 5/5] ARM: brcmstb: " Brian Norris
2014-09-30 4:30 ` [PATCH 0/5] ARM: move #include <asm/cp15.h> into cacheflush.h Nicolas Pitre
5 siblings, 0 replies; 8+ messages in thread
From: Brian Norris @ 2014-09-30 1:35 UTC (permalink / raw)
To: linux-arm-kernel
<asm/cp15.h> is only being included because of the implicit requirements
of v7_exit_coherency_flush(). Now that the implicit include is provided
for us, we can drop it from our explicit list.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
---
arch/arm/mach-vexpress/dcscb.c | 1 -
arch/arm/mach-vexpress/tc2_pm.c | 1 -
2 files changed, 2 deletions(-)
diff --git a/arch/arm/mach-vexpress/dcscb.c b/arch/arm/mach-vexpress/dcscb.c
index 30b993399ed7..28b0a33c91e1 100644
--- a/arch/arm/mach-vexpress/dcscb.c
+++ b/arch/arm/mach-vexpress/dcscb.c
@@ -22,7 +22,6 @@
#include <asm/proc-fns.h>
#include <asm/cacheflush.h>
#include <asm/cputype.h>
-#include <asm/cp15.h>
#define RST_HOLD0 0x0
diff --git a/arch/arm/mach-vexpress/tc2_pm.c b/arch/arm/mach-vexpress/tc2_pm.c
index 2fb78b4648cb..bc596f7d0d85 100644
--- a/arch/arm/mach-vexpress/tc2_pm.c
+++ b/arch/arm/mach-vexpress/tc2_pm.c
@@ -26,7 +26,6 @@
#include <asm/proc-fns.h>
#include <asm/cacheflush.h>
#include <asm/cputype.h>
-#include <asm/cp15.h>
#include <linux/arm-cci.h>
--
1.9.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 5/5] ARM: brcmstb: drop unnecessary include
2014-09-30 1:35 [PATCH 0/5] ARM: move #include <asm/cp15.h> into cacheflush.h Brian Norris
` (3 preceding siblings ...)
2014-09-30 1:35 ` [PATCH 4/5] ARM: vexpress: " Brian Norris
@ 2014-09-30 1:35 ` Brian Norris
2014-09-30 4:30 ` [PATCH 0/5] ARM: move #include <asm/cp15.h> into cacheflush.h Nicolas Pitre
5 siblings, 0 replies; 8+ messages in thread
From: Brian Norris @ 2014-09-30 1:35 UTC (permalink / raw)
To: linux-arm-kernel
<asm/cp15.h> is only being included because of the implicit requirements
of v7_exit_coherency_flush(). Now that the implicit include is provided
for us, we can drop it from our explicit list.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Marc Carino <marc.ceeeee@gmail.com>
---
This is based on code queued for 3.18
arch/arm/mach-bcm/platsmp-brcmstb.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/mach-bcm/platsmp-brcmstb.c b/arch/arm/mach-bcm/platsmp-brcmstb.c
index 31c87a284a34..3911ca7a0c3c 100644
--- a/arch/arm/mach-bcm/platsmp-brcmstb.c
+++ b/arch/arm/mach-bcm/platsmp-brcmstb.c
@@ -25,7 +25,6 @@
#include <linux/mfd/syscon.h>
#include <asm/cacheflush.h>
-#include <asm/cp15.h>
#include <asm/mach-types.h>
#include <asm/smp_plat.h>
--
1.9.1
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 0/5] ARM: move #include <asm/cp15.h> into cacheflush.h
2014-09-30 1:35 [PATCH 0/5] ARM: move #include <asm/cp15.h> into cacheflush.h Brian Norris
` (4 preceding siblings ...)
2014-09-30 1:35 ` [PATCH 5/5] ARM: brcmstb: " Brian Norris
@ 2014-09-30 4:30 ` Nicolas Pitre
2014-09-30 10:03 ` Russell King - ARM Linux
5 siblings, 1 reply; 8+ messages in thread
From: Nicolas Pitre @ 2014-09-30 4:30 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, 29 Sep 2014, Brian Norris wrote:
> There are several places where an explicit include of <asm/cp15.h> is needed
> just because cacheflush.h uses one of its macros in v7_exit_coherency_flush().
> Let's put the include in the proper header.
>
> These obviously have some dependencies, so I'd focus on:
> (1) Is patch 1 acceptable? If so, then:
Well, I'm wondering if it is really a gain to force a dependency for
cp15.h on every user of cacheflush.h just because of the seldomly used
v7_exit_coherency_flush(). But I don't mind either ways.
Nicolas
^ permalink raw reply [flat|nested] 8+ messages in thread* [PATCH 0/5] ARM: move #include <asm/cp15.h> into cacheflush.h
2014-09-30 4:30 ` [PATCH 0/5] ARM: move #include <asm/cp15.h> into cacheflush.h Nicolas Pitre
@ 2014-09-30 10:03 ` Russell King - ARM Linux
0 siblings, 0 replies; 8+ messages in thread
From: Russell King - ARM Linux @ 2014-09-30 10:03 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Sep 30, 2014 at 12:30:06AM -0400, Nicolas Pitre wrote:
> On Mon, 29 Sep 2014, Brian Norris wrote:
>
> > There are several places where an explicit include of <asm/cp15.h> is needed
> > just because cacheflush.h uses one of its macros in v7_exit_coherency_flush().
> > Let's put the include in the proper header.
> >
> > These obviously have some dependencies, so I'd focus on:
> > (1) Is patch 1 acceptable? If so, then:
>
> Well, I'm wondering if it is really a gain to force a dependency for
> cp15.h on every user of cacheflush.h just because of the seldomly used
> v7_exit_coherency_flush(). But I don't mind either ways.
I don't like unnecessary dependencies. We have too many of them already,
and it basically means that touching any header file triggers a full
kernel rebuild.
If we go down the path of adding unnecessary dependencies, we might as
well do away with make and just script the damn thing, and that'll
probably be faster since there'll be no dependencies to track. Just
throw everything through ccache and let it deal with anything which
has changed. Just don't allow your disk to fill up during the build,
ccache really doesn't like that.
--
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.
^ permalink raw reply [flat|nested] 8+ messages in thread