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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Nov 2016 09:48:34 +0000 (10:48 +0100)
commitc45bfaa9211ef5936916503bdba639eae3761777
tree0d00315379379c3fd4b48ea7b342ba33521b47bf
parent3b21a0b468a3d611b6f7749f61e8cd185ec6df3d
ARC: timer: rtc: implement read loop in "C" vs. inline asm

commit 922cc171998ac3dbe74d57011ef7ed57e9b0d7df upstream.

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.

Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arc/kernel/time.c