Re: [PATCH v8 10/18] RISC-V: Init and Halt Code

From: Dmitriy Cherkasov
Date: Sat Sep 16 2017 - 17:39:16 EST

On 09/16/2017 06:28 AM, Daniel Lezcano wrote:
On 16/09/2017 08:23, Dmitriy Cherkasov wrote:
On 09/13/2017 11:15 AM, Daniel Lezcano wrote:

Where is get_cycles64() ?

This is in asm/timex.h. Should this be split into a separate asm header
ala arm64?

No, it is fine but may be it is get_cycles(), no get_cycles64(), right?

get_cycles() returns a 32 or 64-bit value depending on machine register width, using one assembly instruction to retrieve it.

get_cycles64() always returns a 64-bit value at the expense of a few more instructions on 32-bit systems.