[U-Boot] [PATCH] ARM: remove bogus cp_delay() function

Simon Glass sjg at chromium.org
Mon Jun 12 23:50:43 UTC 2017


On 8 June 2017 at 01:48, Lothar Waßmann <LW at karo-electronics.de> wrote:
> The cp_delay() function was introduced because of a missing 'volatile'
> attribute to the 'asm' statement in get_cr() which led to the 'mrc'
> instruction in get_cr() being optimised out eventually.
> This has been fixed in commit 53fd4b8c22bb ("arm: mmu: Add missing volatile for reading SCTLR register")
> but the bogus cp_delay() function which was introduced as a workaround
> for the malfunctioning get_cr() was never removed.
>
> Signed-off-by: Lothar Waßmann <LW at KARO-electronics.de>
> ---
>  arch/arm/lib/cache-cp15.c | 15 +--------------
>  1 file changed, 1 insertion(+), 14 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list