Port Linux's percpu_counters
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 4 May 2018 22:33:17 +0000 (18:33 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 22 May 2018 21:53:04 +0000 (17:53 -0400)
commitd558d394515ec6e7a9020f612e44e541f8823108
treebcd038e778464bee212c3941d8a989d8cb516859
parentf5da46b6e5e5f1644d784649245d15d24f416c3f
Port Linux's percpu_counters

Note the hokey per_cpu_ptr(x) -> _PERCPU_VARPTR(*x).

Also, these aren't as big as the WARNING says - neither are Linux's, I
think.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/percpu_counter.h
kern/lib/Kbuild
kern/lib/percpu_counter.c