The NetBSD Project

CVS log for src/sys/kern/subr_percpu.c

[BACK] Up to [cvs.netbsd.org] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.15.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:28 2012 UTC (5 weeks, 4 days ago) by yamt
Branch: yamt-pagecache
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

sync with head

Revision 1.15.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:32 2012 UTC (3 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

merge to -current.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jan 27 19:48:40 2012 UTC (3 months, 4 weeks ago) by para
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, HEAD
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored)

extending vmem(9) to be able to allocated resources for it's own needs.
simplifying uvm_map handling (no special kernel entries anymore no relocking)
make malloc(9) a thin wrapper around kmem(9)
(with private interface for interrupt safety reasons)

releng@ acknowledged

Revision 1.15 / (download) - annotate - [select for diffs], Fri Sep 2 22:25:08 2011 UTC (8 months, 3 weeks ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.14: +12 -9 lines
Diff to previous 1.14 (colored)

Report vmem(9) errors out-of-band so that we can use vmem(9) to manage
ranges that include the least and the greatest vmem_addr_t.  Update
vmem(9) uses throughout the kernel.  Slightly expand on the tests in
subr_vmem.c, which still pass.  I've been running a kernel with this
patch without any trouble.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jul 27 14:35:34 2011 UTC (9 months, 4 weeks ago) by uebayasi
Branch: MAIN
Changes since 1.13: +2 -4 lines
Diff to previous 1.13 (colored)

These don't need uvm/uvm_extern.h.

Revision 1.10.6.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:35 2011 UTC (11 months, 2 weeks ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.10: +9 -7 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Sync with HEAD.

Revision 1.10.4.2 / (download) - annotate - [select for diffs], Tue May 31 03:05:02 2011 UTC (11 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.10.4.1: +5 -4 lines
Diff to previous 1.10.4.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

sync with head

Revision 1.13 / (download) - annotate - [select for diffs], Fri May 13 22:16:44 2011 UTC (12 months, 1 week ago) by rmind
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.12: +7 -6 lines
Diff to previous 1.12 (colored)

Sprinkle __cacheline_aligned and __read_mostly.

Revision 1.10.4.1 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:09 2011 UTC (13 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.10: +4 -3 lines
Diff to previous 1.10 (colored)

sync with head

Revision 1.12 / (download) - annotate - [select for diffs], Tue Apr 19 07:12:59 2011 UTC (13 months, 1 week ago) by martin
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

Relax an assertion

Revision 1.11 / (download) - annotate - [select for diffs], Thu Apr 14 05:53:53 2011 UTC (13 months, 1 week ago) by matt
Branch: MAIN
Changes since 1.10: +4 -3 lines
Diff to previous 1.10 (colored)

Add a KASSERT

Revision 1.6.2.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:18 2010 UTC (2 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.6.2.2: +2 -4 lines
Diff to previous 1.6.2.2 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

sync with head

Revision 1.10 / (download) - annotate - [select for diffs], Wed Oct 21 21:12:06 2009 UTC (2 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: rmind-uvmplock, jruoho-x86intr
Changes since 1.9: +2 -4 lines
Diff to previous 1.9 (colored)

Remove uarea swap-out functionality:

- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code.  Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:48 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.6.2.1: +7 -7 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored)

sync with head.

Revision 1.8.10.1 / (download) - annotate - [select for diffs], Mon Feb 2 03:34:29 2009 UTC (3 years, 3 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.8: +7 -7 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

Pull up following revision(s) (requested by ad in ticket #348):
	sys/kern/subr_percpu.c: revision 1.9
Start percpu allocation at (ALIGNBYTES + 1) to avoid problem with importing
offset zero to vmem.

Revision 1.8.8.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:39 2009 UTC (3 years, 4 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.8: +7 -7 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

Sync with HEAD.

Revision 1.2.12.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:19 2009 UTC (3 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.2.12.2: +5 -5 lines
Diff to previous 1.2.12.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Dec 15 11:59:22 2008 UTC (3 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, jymxensuspend-base, jym-xensuspend-base, jym-xensuspend
Changes since 1.8: +7 -7 lines
Diff to previous 1.8 (colored)

Start percpu allocation at (ALIGNBYTES + 1) to avoid problem with importing
offset zero to vmem.

Revision 1.2.12.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:11 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.2.12.1: +32 -6 lines
Diff to previous 1.2.12.1 (colored) to branchpoint 1.2 (colored)

Sync with HEAD.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:09 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.4: +18 -7 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

sync with head.

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:26 2008 UTC (4 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.6: +17 -6 lines
Diff to previous 1.6 (colored)

sync with head.

Revision 1.8 / (download) - annotate - [select for diffs], Sat May 3 05:31:56 2008 UTC (4 years ago) by yamt
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, netbsd-5-0-RC1, matt-mips64-base2, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.7: +15 -4 lines
Diff to previous 1.7 (colored)

- encrypt/decrypt offsets if DIAGNOSTIC.
- add an assertion.
these changes allow to detect a use of uninitialized percpu_t *.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Apr 28 15:36:01 2008 UTC (4 years ago) by ad
Branch: MAIN
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

Add MI code to support in-kernel preemption. Preemption is deferred by
one of the following:

- Holding kernel_lock (indicating that the code is not MT safe).
- Bracketing critical sections with kpreempt_disable/kpreempt_enable.
- Holding the interrupt priority level above IPL_NONE.

Statistics on kernel preemption are reported via event counters, and
where preemption is deferred for some reason, it's also reported via
lockstat. The LWP priority at which preemption is triggered is tuneable
via sysctl.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Apr 27 11:37:48 2008 UTC (4 years ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)

- Rename crit_enter/crit_exit to kpreempt_disable/kpreempt_enable.
  DragonflyBSD uses the crit names for something quite different.
- Add a kpreempt_disabled function for diagnostic assertions.
- Add inline versions of kpreempt_enable/kpreempt_disable for primitives.
- Make some more changes for preemption safety to the x86 pmap.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Apr 26 08:06:11 2008 UTC (4 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

fix a comment.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Apr 9 05:11:20 2008 UTC (4 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.3: +20 -5 lines
Diff to previous 1.3 (colored)

Make the percpu API a little more friendly:
- percpu_getptr() is now called percpu_getref() and implicitly disables
  preemption (via crit_enter()) when it is called.
- Added percpu_putref() which implicitly reenables preemption (via
  crit_exit()).

Revision 1.2.12.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:03 2008 UTC (4 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.2: +8 -8 lines
Diff to previous 1.2 (colored)

Sync with HEAD.

Revision 1.2.8.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:14 2008 UTC (4 years, 2 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.2: +8 -8 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

sync with head.

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:00 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.3.2.1: +344 -0 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

sync with HEAD

Revision 1.2.4.3 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:34 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.2.4.2: +8 -8 lines
Diff to previous 1.2.4.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

sync with head.

Revision 1.3.2.1, Mon Mar 17 08:27:50 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.3: +0 -344 lines
FILE REMOVED

file subr_percpu.c was added on branch matt-armv6 on 2008-03-23 02:05:00 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Mon Mar 17 08:27:50 2008 UTC (4 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: matt-armv6
Changes since 1.2: +8 -8 lines
Diff to previous 1.2 (colored)

- simplify ASSERT_SLEEPABLE.
- move it from proc.h to systm.h.
- add some more checks.
- make it a little more lkm friendly.

Revision 1.2.6.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:47 2008 UTC (4 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.2.6.1: +344 -0 lines
Diff to previous 1.2.6.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD.

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:19 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.2.4.1: +344 -0 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored)

sync with head

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Sat Jan 19 12:15:25 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.2.2.1: +344 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD

Revision 1.2.6.1, Thu Jan 17 09:01:57 2008 UTC (4 years, 4 months ago) by mjf
Branch: mjf-devfs
Changes since 1.2: +0 -344 lines
FILE REMOVED

file subr_percpu.c was added on branch mjf-devfs on 2008-02-18 21:06:47 +0000

Revision 1.2.4.1, Thu Jan 17 09:01:57 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.2: +0 -344 lines
FILE REMOVED

file subr_percpu.c was added on branch yamt-lazymbuf on 2008-01-21 09:46:19 +0000

Revision 1.2.2.1, Thu Jan 17 09:01:57 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.2: +0 -344 lines
FILE REMOVED

file subr_percpu.c was added on branch bouyer-xeni386 on 2008-01-19 12:15:25 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jan 17 09:01:57 2008 UTC (4 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: yamt-lazymbuf, mjf-devfs2, mjf-devfs, keiichi-mipv6, bouyer-xeni386
Changes since 1.1: +28 -22 lines
Diff to previous 1.1 (colored)

- add a cpu_info pointer argument to percpu_callback_t.
- unexport percpu_zero.
- add some comments.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jan 14 12:40:03 2008 UTC (4 years, 4 months ago) by yamt
Branch: MAIN

add a per-cpu storage allocator.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>