ARC: timer: rtc: implement read loop in "C" vs. inline asm
authorVineet Gupta <vgupta@synopsys.com>
Mon, 31 Oct 2016 21:09:52 +0000 (14:09 -0700)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 7 Nov 2016 19:19:44 +0000 (11:19 -0800)
commit922cc171998ac3dbe74d57011ef7ed57e9b0d7df
treef5ed33ca33fba86596ad96abaa4bfaffdb2b11d1
parente6e335bf3a400bc3b5a65322a891318a25749769
ARC: timer: rtc: implement read loop in "C" vs. inline asm

The current code doesn't even compile as somehow the inline assembly
can't see the register names defined as ARC_RTC_*
I'm pretty sure It worked when I first got it merged, but the tools were
definitely different then.

So better to write this in "C" anyways.

CC: stable@vger.kernel.org #4.2+
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/time.c