* [PATCH] ARM: cache-armv7: remove superfluous instruction
@ 2019-10-08 14:46 Ahmad Fatoum
2019-10-14 10:27 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2019-10-08 14:46 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
There are two tst r11, #0xf with nothing in between them that changes
r11. This a left over from the kernel code that checks for VMSA twice,
once to check if the page table should be setup and once to more to
flush the TLB. We do the setup in the caller already, so the tst serves
no useful purpose. Delete one.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
arch/arm/cpu/cache-armv7.S | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/cpu/cache-armv7.S b/arch/arm/cpu/cache-armv7.S
index 6a8aff8bb12c..43ec9021330e 100644
--- a/arch/arm/cpu/cache-armv7.S
+++ b/arch/arm/cpu/cache-armv7.S
@@ -7,7 +7,6 @@ ENTRY(v7_mmu_cache_on)
mov r12, lr
#ifdef CONFIG_MMU
mrc p15, 0, r11, c0, c1, 4 @ read ID_MMFR0
- tst r11, #0xf @ VMSA
mov r0, #0
dsb @ drain write buffer
tst r11, #0xf @ VMSA
--
2.23.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: cache-armv7: remove superfluous instruction
2019-10-08 14:46 [PATCH] ARM: cache-armv7: remove superfluous instruction Ahmad Fatoum
@ 2019-10-14 10:27 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2019-10-14 10:27 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: barebox
On Tue, Oct 08, 2019 at 04:46:28PM +0200, Ahmad Fatoum wrote:
> There are two tst r11, #0xf with nothing in between them that changes
> r11. This a left over from the kernel code that checks for VMSA twice,
> once to check if the page table should be setup and once to more to
> flush the TLB. We do the setup in the caller already, so the tst serves
> no useful purpose. Delete one.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> arch/arm/cpu/cache-armv7.S | 1 -
> 1 file changed, 1 deletion(-)
Applied, thanks
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-14 10:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-08 14:46 [PATCH] ARM: cache-armv7: remove superfluous instruction Ahmad Fatoum
2019-10-14 10:27 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox