git: arc4random: Make arc4random context per-cpu.

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Fri Sep 22 00:42:52 PDT 2017


commit cc3685b0dca0597c075036cdff25ada134be30aa
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Fri Sep 22 07:35:21 2017 +0800

    arc4random: Make arc4random context per-cpu.
    
    Critical section is commented out, no consumers from ISRs/ithreads.

Summary of changes:
 sys/libkern/arc4random.c              | 161 +++++++++++++++++++---------------
 sys/platform/pc64/x86_64/mp_machdep.c |   9 ++
 sys/platform/vkernel64/x86_64/mp.c    |   6 ++
 sys/sys/libkern.h                     |   1 +
 4 files changed, 104 insertions(+), 73 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cc3685b0dca0597c075036cdff25ada134be30aa


-- 
DragonFly BSD source repository



More information about the Commits mailing list