arm: remove bogus cp_delay() function karo-tx25 KARO-TX25-2017-08-17
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, 17 Aug 2017 10:37:11 +0000 (12:37 +0200)
commit8aac45d8e341ac915fa682ee253975d5072b5847
treefe5a3af6ea1b05b18e1839f023292477018387a3
parent437bc42e7ff930dc4d4bd47199d2e823cf84bf4c
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