Module Name: src Committed By: rmind Date: Sat Jan 23 00:17:07 UTC 2010
Modified Files: src/distrib/sets/lists/comp: mi src/share/man/man9: Makefile percpu.9 xcall.9 Log Message: Remove xc_init_cpu(), percpu_init(), percpu_init_cpu() - they are part of implementation, not public API. OK dyo...@. To generate a diff of this commit: cvs rdiff -u -r1.1370 -r1.1371 src/distrib/sets/lists/comp/mi cvs rdiff -u -r1.308 -r1.309 src/share/man/man9/Makefile cvs rdiff -u -r1.5 -r1.6 src/share/man/man9/percpu.9 cvs rdiff -u -r1.1 -r1.2 src/share/man/man9/xcall.9 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/distrib/sets/lists/comp/mi diff -u src/distrib/sets/lists/comp/mi:1.1370 src/distrib/sets/lists/comp/mi:1.1371 --- src/distrib/sets/lists/comp/mi:1.1370 Sat Jan 23 00:03:38 2010 +++ src/distrib/sets/lists/comp/mi Sat Jan 23 00:17:07 2010 @@ -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 Index: src/share/man/man9/Makefile diff -u src/share/man/man9/Makefile:1.308 src/share/man/man9/Makefile:1.309 --- src/share/man/man9/Makefile:1.308 Sat Jan 23 00:03:38 2010 +++ src/share/man/man9/Makefile Sat Jan 23 00:17:07 2010 @@ -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 @@ 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 \ Index: src/share/man/man9/percpu.9 diff -u src/share/man/man9/percpu.9:1.5 src/share/man/man9/percpu.9:1.6 --- src/share/man/man9/percpu.9:1.5 Fri Jan 22 20:41:50 2010 +++ src/share/man/man9/percpu.9 Sat Jan 23 00:17:07 2010 @@ -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 @@ 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 Index: src/share/man/man9/xcall.9 diff -u src/share/man/man9/xcall.9:1.1 src/share/man/man9/xcall.9:1.2 --- src/share/man/man9/xcall.9:1.1 Sat Jan 23 00:03:38 2010 +++ src/share/man/man9/xcall.9 Sat Jan 23 00:17:07 2010 @@ -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 @@ 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)"