Re: monitoring entropy

H. Peter Anvin (hpa@transmeta.com)
15 Oct 1997 11:00:10 GMT


Followup to: <199710150310.VAA18822@nyx10.nyx.net>
By author: Colin Plumb <colin@nyx.net>
In newsgroup: linux.dev.kernel
>
> Oh, a question for folks who understand the multi-platform coding style.
> On the Pentium, /dev/random takes advnatage of the clock cycle counter
> to get as much timing information as posible. Many other processors
> have this too (Alpha, MIPS, PowerPC, ...) and it would be nice for it
> to work on them too. Is there a better way to do this than to have
> a zillion #ifdefs? It's just a couple of lines of inline asm per
> platform. Should the function go into <asm/foo.h> somewhere? What
> should it be called, and where should it go?
>

Create a function and stick it in include/asm-*/something.h if it is
an inline, and arch/*/kernel/something.c if it is not.

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables