]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Reimplement get_cycles().
authorRalf Baechle <ralf@linux-mips.org>
Thu, 12 Sep 2013 11:47:32 +0000 (13:47 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 18 Sep 2013 14:31:49 +0000 (16:31 +0200)
commit9c9b415c50bc298ac61412dff856eae2f54889ee
treeb2fd1afaf7740202cd99d37ff0084dcd87674e46
parent69f24d1784b631b81a54eb57c49bf46536dd2382
MIPS: Reimplement get_cycles().

This essentially reverts commit efb9ca08b5a2374b29938cdcab417ce4feb14b54
(kernel.org) / 58020a106879a8b372068741c81f0015c9b0b96dbv [[MIPS] Change
get_cycles to always return 0.]

Most users of get_cycles() invoke it as a timing interface.  That's why
in modern kernels it was never very much missed for.  /dev/random however
uses get_cycles() in the how the jitter in the interrupt timing contains
some useful entropy.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/timex.h