Remove xc_init_cpu(), percpu_init(), percpu_init_cpu() - they are part

of implementation, not public API.  OK dyoung@.
This commit is contained in:
rmind 2010-01-23 00:17:07 +00:00
parent ea2aef81a8
commit 48290c7a18
4 changed files with 12 additions and 42 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: mi,v 1.1370 2010/01/23 00:03:38 rmind Exp $
# $NetBSD: mi,v 1.1371 2010/01/23 00:17:07 rmind Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@ -9101,8 +9101,6 @@
./usr/share/man/cat9/pcq_peek.0 comp-sys-catman .cat
./usr/share/man/cat9/pcq_put.0 comp-sys-catman .cat
./usr/share/man/cat9/percpu.0 comp-sys-catman .cat
./usr/share/man/cat9/percpu_init.0 comp-sys-catman .cat
./usr/share/man/cat9/percpu_init_cpu.0 comp-sys-catman .cat
./usr/share/man/cat9/percpu_alloc.0 comp-sys-catman .cat
./usr/share/man/cat9/percpu_free.0 comp-sys-catman .cat
./usr/share/man/cat9/percpu_getref.0 comp-sys-catman .cat
@ -14631,8 +14629,6 @@
./usr/share/man/html9/pcq_peek.html comp-sys-htmlman html
./usr/share/man/html9/pcq_put.html comp-sys-htmlman html
./usr/share/man/html9/percpu.html comp-sys-htmlman html
./usr/share/man/html9/percpu_init.html comp-sys-htmlman html
./usr/share/man/html9/percpu_init_cpu.html comp-sys-htmlman html
./usr/share/man/html9/percpu_alloc.html comp-sys-htmlman html
./usr/share/man/html9/percpu_free.html comp-sys-htmlman html
./usr/share/man/html9/percpu_getref.html comp-sys-htmlman html
@ -20328,8 +20324,6 @@
./usr/share/man/man9/pcq_peek.9 comp-sys-man .man
./usr/share/man/man9/pcq_put.9 comp-sys-man .man
./usr/share/man/man9/percpu.9 comp-sys-man .man
./usr/share/man/man9/percpu_init.9 comp-sys-man .man
./usr/share/man/man9/percpu_init_cpu.9 comp-sys-man .man
./usr/share/man/man9/percpu_alloc.9 comp-sys-man .man
./usr/share/man/man9/percpu_free.9 comp-sys-man .man
./usr/share/man/man9/percpu_getref.9 comp-sys-man .man

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.308 2010/01/23 00:03:38 rmind Exp $
# $NetBSD: Makefile,v 1.309 2010/01/23 00:17:07 rmind Exp $
# Makefile for section 9 (kernel function and variable) manual pages.
@ -504,9 +504,7 @@ MLINKS+=pcmcia.9 pcmcia_function_init.9 \
pcmcia.9 pcmcia_cis_read_4.9 \
pcmcia.9 pcmcia_cis_read_n.9 \
pcmcia.9 pcmcia_scan_cis.9
MLINKS+=percpu.9 percpu_init.9 \
percpu.9 percpu_init_cpu.9 \
percpu.9 percpu_alloc.9 \
MLINKS+=percpu.9 percpu_alloc.9 \
percpu.9 percpu_free.9 \
percpu.9 percpu_getref.9 \
percpu.9 percpu_putref.9 \

View File

@ -1,4 +1,4 @@
.\" $NetBSD: percpu.9,v 1.5 2010/01/22 20:41:50 dyoung Exp $
.\" $NetBSD: percpu.9,v 1.6 2010/01/23 00:17:07 rmind Exp $
.\"
.\" Copyright (c) 2010 The NetBSD Foundation, Inc.
.\" All rights reserved.
@ -27,26 +27,20 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd January 22, 2010
.Dd January 23, 2010
.Dt PERCPU 9
.Os
.Sh NAME
.Nm PERCPU ,
.Nm percpu_init ,
.Nm percpu_init_cpu ,
.Nm percpu ,
.Nm percpu_alloc ,
.Nm percpu_free ,
.Nm percpu_getref ,
.Nm percpu_putref ,
.Nm percpu_foreach
.Nd Per-CPU storage allocator
.Nd per-CPU storage allocator
.Sh SYNOPSIS
.In sys/percpu.h
.Vt typedef void (*percpu_callback_t)(void *, void *, struct cpu_info *);
.Ft void
.Fn percpu_init "void"
.Ft void
.Fn percpu_init_cpu "struct cpu_info *ci"
.Ft percpu_t *
.Fn percpu_alloc "size_t size"
.Ft void
@ -83,16 +77,6 @@ the thread may read or write the region at
without causing interprocessor memory synchronization.
.Sh FUNCTIONS
.Bl -tag -width compact
.It Fn percpu_init "void"
Initialize the per-CPU storage subsystem.
This is called just once, in
.Fn main .
.It Fn percpu_init_cpu "ci"
Initialize per-CPU storage on the CPU given by
.Fa ci .
The kernel must call this before the CPU appears on the
global CPUs list for
.Dv CPU_INFO_FOREACH .
.It Fn percpu_alloc "size"
Call this in thread context to allocate
.Fa size

View File

@ -1,4 +1,4 @@
.\" $NetBSD: xcall.9,v 1.1 2010/01/23 00:03:38 rmind Exp $
.\" $NetBSD: xcall.9,v 1.2 2010/01/23 00:17:07 rmind Exp $
.\"
.\" Copyright (c) 2010 The NetBSD Foundation, Inc.
.\" All rights reserved.
@ -27,21 +27,18 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd January 22, 2010
.Dt XC 9
.Dd January 23, 2010
.Dt xcall 9
.Os
.Sh NAME
.Nm XC ,
.Nm xc_init_cpu ,
.Nm xcall ,
.Nm xc_broadcast ,
.Nm xc_unicast ,
.Nm xc_wait
.Nd Cross-call interface
.Nd cross-call interface
.Sh SYNOPSIS
.In sys/xcall.h
.Vt typedef void (*xcfunc_t)(void *, void *);
.Ft void
.Fn xc_init_cpu "struct cpu_info *ci"
.Ft uint64_t
.Fn xc_broadcast "u_int flags" "xcfunc_t func" "void *arg1" "void *arg2"
.Ft uint64_t
@ -90,9 +87,6 @@ Since this facility is heavyweight, it's expected that it will not
be used often.
.Sh FUNCTIONS
.Bl -tag -width compact
.It Fn xc_init_cpu "ci"
Initialize the cross-call subsystem.
Called once for each CPU in the system as it is attached.
.It Fn xc_broadcast "flags" "func" "arg1" "arg2"
Call
.Fo "(*func)"