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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux