On Thu, Nov 08, 2007 at 12:01:24PM -0800, Christoph Lameter wrote: > On Thu, 8 Nov 2007, Matt Mackall wrote: > > > Not really. drivers/char/random.c does: > > > > __get_cpu_var(trickle_count)++ & 0xfff > > That is incremented on each call to add_timer_randomness. Not a high > enough resolution there. I guess I am stuck with get_cycles(). I'm not suggesting you use trickle_count, silly. I'm suggesting you use a similar approach. But perhaps I should just add a lightweight RNG to random.c and be done with it. -- Mathematics is the supreme nostalgia of our time. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [patch 02/23] SLUB: Rename NUMA defrag_ratio to remote_node_defrag_ratio
- From: Christoph Lameter <[email protected]>
- Re: [patch 02/23] SLUB: Rename NUMA defrag_ratio to remote_node_defrag_ratio
- References:
- [patch 00/23] Slab defragmentation V6
- From: Christoph Lameter <[email protected]>
- [patch 02/23] SLUB: Rename NUMA defrag_ratio to remote_node_defrag_ratio
- From: Christoph Lameter <[email protected]>
- Re: [patch 02/23] SLUB: Rename NUMA defrag_ratio to remote_node_defrag_ratio
- From: [email protected] (Mel Gorman)
- Re: [patch 02/23] SLUB: Rename NUMA defrag_ratio to remote_node_defrag_ratio
- From: Matt Mackall <[email protected]>
- Re: [patch 02/23] SLUB: Rename NUMA defrag_ratio to remote_node_defrag_ratio
- From: Christoph Lameter <[email protected]>
- Re: [patch 02/23] SLUB: Rename NUMA defrag_ratio to remote_node_defrag_ratio
- From: Matt Mackall <[email protected]>
- Re: [patch 02/23] SLUB: Rename NUMA defrag_ratio to remote_node_defrag_ratio
- From: Christoph Lameter <[email protected]>
- [patch 00/23] Slab defragmentation V6
- Prev by Date: Re: [PATCH RFC 3/7] x86: clean up asm-x86/page*.h
- Next by Date: Re: [PATCH] r8169 fix regression on ASUS motherboards (updated again)
- Previous by thread: Re: [patch 02/23] SLUB: Rename NUMA defrag_ratio to remote_node_defrag_ratio
- Next by thread: Re: [patch 02/23] SLUB: Rename NUMA defrag_ratio to remote_node_defrag_ratio
- Index(es):