[lkml]   [2017]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v8 10/18] RISC-V: Init and Halt Code
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.

 \ /
  Last update: 2017-09-16 23:39    [W:0.075 / U:0.020 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site