[patch 14/38] slub: Use prandom instead of get_cycles()

Vlastimil Babka (SUSE) vbabka at kernel.org
Mon Apr 13 19:00:57 AEST 2026


On 4/10/26 14:19, Thomas Gleixner wrote:
> The decision whether to scan remote nodes is based on a 'random' number
> retrieved via get_cycles(). get_cycles() is about to be removed.
> 
> There is already prandom state in the code, so use that instead.
> 
> Signed-off-by: Thomas Gleixner <tglx at kernel.org>
> Cc: Vlastimil Babka <vbabka at kernel.org>
> Cc: linux-mm at kvack.org

LGTM.

Acked-by: Vlastimil Babka (SUSE) <vbabka at kernel.org>



More information about the Linuxppc-dev mailing list