arm: remove bogus cp_delay() function
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 17 Aug 2017 10:37:11 +0000 (12:37 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 24 Aug 2017 07:24:32 +0000 (09:24 +0200)
commit3a085e3e702672bc2867ae8e7bc552dc7af287fd
treef674194d1fcdff627dd0c4ca335a86e2b65b6a49
parent6af5a1ce5bc014a8375be44a77ddd35d2721d20a
arm: remove bogus cp_delay() function

Due to a missing 'volatile' in the get_cr() function, the asm
instruction may be optimized away by the compiler.
This bug has been papered over with a delay loop after reading the
CP15 control register.
Fix the asm statement and remove the bogus workaround.
arch/arm/include/asm/system.h
arch/arm/lib/cache-cp15.c