diff options
author | 2016-10-21 06:27:50 +0000 | |
---|---|---|
committer | 2016-10-21 06:27:50 +0000 | |
commit | 04e271afd236a4e788ea5f35c3ff6ba63689e51a (patch) | |
tree | 04b8e46a84a01d1ba20732f5ceb66f94b7a555eb /lib/libc/stdlib/malloc.c | |
parent | vmm(4) for i386. Userland changes forthcoming. Note that for the time being, (diff) | |
download | wireguard-openbsd-04e271afd236a4e788ea5f35c3ff6ba63689e51a.tar.xz wireguard-openbsd-04e271afd236a4e788ea5f35c3ff6ba63689e51a.zip |
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@
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions