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.18.14.1 / (download) - annotate - [select for diffs], Wed Jul 15 13:30:20 2020 UTC (2 years, 10 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Pull up following revision(s) (requested by riastradh in ticket #1005):

	sys/kern/subr_percpu.c: revision 1.20

Allow equality in this assertion.


This can happen if we lose the race mentioned in percpu_cpu_swap.

Revision 1.25 / (download) - annotate - [select for diffs], Mon May 11 21:37:31 2020 UTC (3 years ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, netbsd-10-base, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.24: +87 -2 lines
Diff to previous 1.24 (colored)

Teach percpu to run constructors on CPU attach.

This should make percpu work reliably for things like cprng_strong
much earlier -- not just after all CPUs have been detected.  This is
also necessary (though not on its own sufficient) for CPU hotplug.

Revision 1.18.10.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:04 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.18.10.1: +1 -1 lines
Diff to previous 1.18.10.1 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.18.10.1 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:52 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.18: +134 -27 lines
Diff to previous 1.18 (colored)

Merge changes from current as of 20200406

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:21:03 2020 UTC (3 years, 3 months ago) by ad
Branch: ad-namecache
Changes since 1.20: +133 -26 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Sync with head.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Feb 7 11:55:22 2020 UTC (3 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Changes since 1.23: +48 -3 lines
Diff to previous 1.23 (colored)

Add percpu_foreach_xcall(), which is like percpu_foreach(), except it
runs the callback on the target CPU.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Feb 1 12:53:41 2020 UTC (3 years, 3 months ago) by riastradh
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

KNF

Revision 1.22 / (download) - annotate - [select for diffs], Sat Feb 1 12:51:18 2020 UTC (3 years, 3 months ago) by riastradh
Branch: MAIN
Changes since 1.21: +15 -13 lines
Diff to previous 1.21 (colored)

Use __read_mostly and gather related __cacheline_aligned together.

Should save a few bytes of kernel.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Feb 1 12:49:02 2020 UTC (3 years, 3 months ago) by riastradh
Branch: MAIN
Changes since 1.20: +73 -13 lines
Diff to previous 1.20 (colored)

New function percpu_create.

Associates a constructor and destructor with the percpu.  Currently
the constructor runs immediately, but in principle we could use the
same API for future CPU hotplug support.

This lets you sleep for allocation or draining users before
deallocation when setting up or tearing down a percpu -- currently we
have many abuses of percpu_foreach in tree for that purpose.

Proposed on tech-kern:
https://mail-index.NetBSD.org/tech-kern/2020/01/30/msg026036.html

Revision 1.20 / (download) - annotate - [select for diffs], Thu Dec 5 03:21:08 2019 UTC (3 years, 5 months ago) by riastradh
Branch: MAIN
CVS Tags: ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

Allow equality in this assertion.

This can happen if we lose the race mentioned in percpu_cpu_swap.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Sep 18 15:33:32 2019 UTC (3 years, 8 months ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

Decorate percpu_cpu_swap() with __noubsan

Revision 1.16.6.1 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:45 2017 UTC (5 years, 5 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.16: +6 -7 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

update from HEAD

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:07 2017 UTC (5 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.17: +4 -5 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Sync with HEAD

Revision 1.18 / (download) - annotate - [select for diffs], Wed May 31 23:54:17 2017 UTC (6 years ago) by chs
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, phil-wifi-20190609, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi, netbsd-9
Changes since 1.17: +4 -5 lines
Diff to previous 1.17 (colored)

vmem_alloc() with VM_SLEEP cannot fail, so percpu_alloc() cannot fail either.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Nov 27 15:00:00 2014 UTC (8 years, 6 months ago) by uebayasi
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: nick-nhusb
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (colored)

Consistently use kpreempt_*() outside scheduler path.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:28 2012 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
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 (11 years, 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 (11 years, 4 months ago) by para
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys
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 (11 years, 9 months 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 (11 years, 10 months 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 years, 11 months 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 (12 years 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 years 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 (12 years, 1 month 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 (12 years, 1 month 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 (12 years, 1 month 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 (13 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 (13 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 (14 years, 1 month 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 (14 years, 3 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, 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 (14 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 (14 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 (14 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 (15 years 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 (15 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 (15 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 (15 years, 1 month 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 (15 years, 1 month 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 (15 years, 1 month 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 (15 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 (15 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 (15 years, 2 months 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 (15 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 (15 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 (15 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 (15 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 (15 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 (15 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 (15 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 (15 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 (15 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 (15 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 (15 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 (15 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 (15 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>