CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2016/10/21 00:27:50
Modified files:
sys/conf : files
sys/kern : init_main.c
sys/sys : srp.h
Added files:
sys/kern : subr_percpu.c
sys/sys : percpu.h
Log message:
add generalised access to per cpu data structures and counters.
both the cpumem and counters api simply allocates memory for each cpu in
the system that can be used for arbitrary per cpu data (via cpumem), or
a versioned set of counters per cpu (counters).
there is an alternate backend for uniprocessor systems that basically
turns the percpu data access into an immediate access to a single
allocation.
there is also support for percpu data structures that are available at
boot time by providing an allocation for the boot cpu. after autoconf,
these allocations have to be resized to provide for all cpus that were
enumerated by boot.
ok mpi@