ARM: 7921/1: mcpm: remove redundant dsb instructions prior to sev
authorWill Deacon <will.deacon@arm.com>
Tue, 10 Dec 2013 19:12:27 +0000 (20:12 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 29 Dec 2013 12:32:44 +0000 (12:32 +0000)
sync_cache_w already includes a dsb, so we can just use sev() directly
then following a cache-sync.

Acked-by: Dave Martin <Dave.Martin@arm.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/mcpm_entry.c

index 87c5f1b595bb83fee159b247be762d19c27a3055..1e361abc29eb0e106492223348de051d1e4e9f3d 100644 (file)
@@ -166,7 +166,7 @@ void __mcpm_cpu_down(unsigned int cpu, unsigned int cluster)
        dmb();
        mcpm_sync.clusters[cluster].cpus[cpu].cpu = CPU_DOWN;
        sync_cache_w(&mcpm_sync.clusters[cluster].cpus[cpu].cpu);
-       dsb_sev();
+       sev();
 }
 
 /*
@@ -182,7 +182,7 @@ void __mcpm_outbound_leave_critical(unsigned int cluster, int state)
        dmb();
        mcpm_sync.clusters[cluster].cluster = state;
        sync_cache_w(&mcpm_sync.clusters[cluster].cluster);
-       dsb_sev();
+       sev();
 }
 
 /*