The NetBSD Project

CVS log for src/sys/sys/mutex.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / sys

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.28 / (download) - annotate - [select for diffs], Thu Sep 7 20:05:41 2023 UTC (5 months, 3 weeks ago) by ad
Branch: MAIN
CVS Tags: triaxx-drm, thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.27: +1 -2 lines
Diff to previous 1.27 (colored)

Remove dodgy and unused mutex_owner_running() & rw_owner_running().

Revision 1.27 / (download) - annotate - [select for diffs], Wed Apr 12 06:35:40 2023 UTC (10 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.26: +1 -2 lines
Diff to previous 1.26 (colored)

kern: Nix mutex_owner.

There is no valid reason to use this except in assertions of the form

	KASSERT(mutex_owner(lock) == curlwp),

which is more obviously spelled as

	KASSERT(mutex_owned(lock)).

Exception: There's one horrible kludge in zfs that abuses this, which
should be eliminated.

XXX kernel revbump -- deleting symbol

PR kern/47114

Revision 1.26 / (download) - annotate - [select for diffs], Wed Oct 26 23:21:20 2022 UTC (16 months, 1 week ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)

mutex(9): Properly declare _mutex_init in sys/mutex.h.

Revision 1.22.4.1 / (download) - annotate - [select for diffs], Wed Apr 8 14:09:03 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.22: +5 -9 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Merge changes from current as of 20200406

Revision 1.25 / (download) - annotate - [select for diffs], Wed Jan 1 21:34:39 2020 UTC (4 years, 2 months ago) by ad
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, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-sunxi-drm-base, bouyer-sunxi-drm, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.24: +3 -1 lines
Diff to previous 1.24 (colored)

Add some new functions for lock objects:

mutex_obj_refcnt(), mutex_obj_tryalloc()
rw_obj_refcnt(), rw_obj_tryalloc()

Revision 1.24 / (download) - annotate - [select for diffs], Mon Dec 9 21:08:56 2019 UTC (4 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (colored)

Add mutex_owner_running().

Revision 1.23 / (download) - annotate - [select for diffs], Sat Nov 30 15:34:07 2019 UTC (4 years, 3 months ago) by riastradh
Branch: MAIN
Changes since 1.22: +1 -8 lines
Diff to previous 1.22 (colored)

Nix vestigial references to MUTEX_GIVE and MUTEX_RECEIVE in comments.

Revision 1.20.20.1 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:20 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.20: +4 -3 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

update from HEAD

Revision 1.22 / (download) - annotate - [select for diffs], Sat Sep 16 23:25:35 2017 UTC (6 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, phil-wifi-20191119, 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, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

add missing const

Revision 1.20.38.1 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:16 2017 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Sync with HEAD

Revision 1.20.52.2 / (download) - annotate - [select for diffs], Tue May 2 03:19:22 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.20.52.1: +1 -1 lines
Diff to previous 1.20.52.1 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

Sync with HEAD - tag prg-localcount2-base1

Revision 1.21 / (download) - annotate - [select for diffs], Mon May 1 21:35:26 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, 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
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

Introduce mutex_ownable() to determine if it is possible for the current
process to acquire a mutex.

Revision 1.20.52.1 / (download) - annotate - [select for diffs], Sun Apr 30 04:56:55 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

Introduce mutex_ownable(9) and use it in localcount_release(9).

Commit of same code to head is awaiting discussion on tech-kern.

Revision 1.20.10.2 / (download) - annotate - [select for diffs], Mon Dec 26 16:03:10 2011 UTC (12 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.20.10.1: +1 -0 lines
Diff to previous 1.20.10.1 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

- use O->A loan to serve read(2).  based on a patch from Chuck Silvers
- associated O->A loan fixes.

Revision 1.20.10.1 / (download) - annotate - [select for diffs], Fri Nov 18 00:57:33 2011 UTC (12 years, 3 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.20: +3 -1 lines
Diff to previous 1.20 (colored)

- use mutex obj for pageable object
- add a function to wait for a mutex obj being available
- replace some "livelock" kpauses with it

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:32 2010 UTC (13 years, 10 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.19: +7 -2 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

Sync with HEAD.

Revision 1.15.4.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:42 2010 UTC (13 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.15.4.2: +7 -2 lines
Diff to previous 1.15.4.2 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

sync with head

Revision 1.20 / (download) - annotate - [select for diffs], Mon Feb 8 09:54:27 2010 UTC (14 years ago) by skrll
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, 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, prg-localcount2-base, 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, 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, matt-mips64-premerge-20101231, localcount-20160914, khorben-n900, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, 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, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, jdolecek-ncq-base, jdolecek-ncq, cherry-xenmp-base, cherry-xenmp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys, prg-localcount2, nick-nhusb
Changes since 1.19: +7 -2 lines
Diff to previous 1.19 (colored)

Re-apply:

	Invert the sense of the bit to mark if LOCKDEBUG is enabled to
	disabled.

	This will help my fellow developers spot "use before initialised"
	problems that hppa picks up very well.

but fix the !LOCKDEBUG case by defining the "no debug" bits to zero so
they have no effect on lock stubs.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Feb 6 04:50:19 2010 UTC (14 years, 1 month ago) by cube
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Revert commit from Fri Feb  5 06:43:17 UTC 2010 by skrll:

      Invert the sense of the bit to mark if LOCKDEBUG is enabled to disabled.

      This will help my fellow developers spot "use before initialised" problems
      that hppa picks up very well.

It has to be done differently, because the semantics of mtx_owner in the non-
LOCKDEBUG case can vary significantly between archs, and thus it is not
possible to simply flip a bit to 1.

Ok core@, as at least i386 is unbootable right now.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Feb 5 06:43:17 2010 UTC (14 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Invert the sense of the bit to mark if LOCKDEBUG is enabled to disabled.

This will help my fellow developers spot "use before initialised" problems
that hppa picks up very well.

Revision 1.15.4.2 / (download) - annotate - [select for diffs], Sat May 16 10:41:53 2009 UTC (14 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.15.4.1: +4 -5 lines
Diff to previous 1.15.4.1 (colored) to branchpoint 1.15 (colored)

sync with head

Revision 1.16.14.1 / (download) - annotate - [select for diffs], Wed May 13 17:23:03 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.16: +4 -5 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.17 / (download) - annotate - [select for diffs], Mon May 11 22:37:21 2009 UTC (14 years, 9 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, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.16: +4 -5 lines
Diff to previous 1.16 (colored)

Obsolete comment.

Revision 1.14.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:33 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.14.6.1: +0 -7 lines
Diff to previous 1.14.6.1 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

Sync with HEAD.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:49 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.15: +1 -8 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

sync with head.

Revision 1.15.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:51 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.15: +1 -8 lines
Diff to previous 1.15 (colored)

sync with head.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:11 2008 UTC (15 years, 10 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base3, 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, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, 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-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, 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, 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: jym-xensuspend
Changes since 1.15: +1 -8 lines
Diff to previous 1.15 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.14.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:12 2008 UTC (15 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.14: +7 -2 lines
Diff to previous 1.14 (colored)

Sync with HEAD.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Mar 27 19:11:05 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.14: +7 -2 lines
Diff to previous 1.14 (colored)

Add code for dynamically allocated mutexes, as posted on tech-kern.

Revision 1.1.18.5 / (download) - annotate - [select for diffs], Mon Jan 21 09:47:54 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1.18.4: +2 -1 lines
Diff to previous 1.1.18.4 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

sync with head

Revision 1.10.8.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:58:13 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.10.8.1: +13 -15 lines
Diff to previous 1.10.8.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

sync with HEAD

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:58:04 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Sync with HEAD

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:40 2007 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.11.2.1: +2 -1 lines
Diff to previous 1.11.2.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

Sync with HEAD.

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:56 2007 UTC (16 years, 2 months ago) by ad
Branch: vmlocking2
Changes since 1.12.2.1: +2 -1 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

Sync with head.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Dec 24 14:57:56 2007 UTC (16 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

Add back mutex_owner() for Solaris compat.

Revision 1.10.6.3 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:48 2007 UTC (16 years, 2 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.10.6.2: +6 -10 lines
Diff to previous 1.10.6.2 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

Sync with HEAD.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:21:33 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.11: +12 -15 lines
Diff to previous 1.11 (colored)

Sync with HEAD.

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Sat Dec 8 17:58:07 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.12: +6 -10 lines
Diff to previous 1.12 (colored)

Sync with head.

Revision 1.1.18.4 / (download) - annotate - [select for diffs], Fri Dec 7 17:34:56 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1.18.3: +12 -15 lines
Diff to previous 1.1.18.3 (colored) to branchpoint 1.1 (colored)

sync with head

Revision 1.13 / (download) - annotate - [select for diffs], Wed Dec 5 07:06:55 2007 UTC (16 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.12: +6 -10 lines
Diff to previous 1.12 (colored)

Match the docs: MUTEX_DRIVER/SPIN are now only for porting code written
for Solaris.

Revision 1.10.6.2 / (download) - annotate - [select for diffs], Wed Nov 21 21:56:16 2007 UTC (16 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.10.6.1: +7 -6 lines
Diff to previous 1.10.6.1 (colored) to branchpoint 1.10 (colored)

Sync with HEAD.

Revision 1.10.12.2 / (download) - annotate - [select for diffs], Wed Nov 21 21:19:50 2007 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.10.12.1: +6 -5 lines
Diff to previous 1.10.12.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

Sync with HEAD

Revision 1.12 / (download) - annotate - [select for diffs], Wed Nov 21 10:19:11 2007 UTC (16 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: vmlocking2-base1, vmlocking-nbase, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2
Changes since 1.11: +7 -6 lines
Diff to previous 1.11 (colored)

make kmutex_t and krwlock_t smaller by killing lock id.
ok'ed by Andrew Doran.

Revision 1.10.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:34:52 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

sync with HEAD

Revision 1.1.18.3 / (download) - annotate - [select for diffs], Sat Oct 27 11:36:31 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1.18.2: +2 -2 lines
Diff to previous 1.1.18.2 (colored) to branchpoint 1.1 (colored)

sync with head.

Revision 1.10.6.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:49:20 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.10.12.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:40:12 2007 UTC (16 years, 4 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Sync with HEAD.

Revision 1.9.2.2 / (download) - annotate - [select for diffs], Tue Oct 23 20:17:25 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.9.2.1: +2 -2 lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

Sync with head.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Oct 19 12:16:48 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: jmcneill-base
Branch point for: mjf-devfs
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.1.18.2 / (download) - annotate - [select for diffs], Mon Sep 3 14:46:29 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1.18.1: +10 -6 lines
Diff to previous 1.1.18.1 (colored) to branchpoint 1.1 (colored)

sync with head.

Revision 1.9.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:12:32 2007 UTC (16 years, 7 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Sync with head.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Sat Jun 9 23:58:16 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Sync with head.

Revision 1.10 / (download) - annotate - [select for diffs], Tue May 29 21:23:30 2007 UTC (16 years, 9 months ago) by alc
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

fix typo in comment

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 06:00:53 2007 UTC (16 years, 11 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.5.2.1: +9 -4 lines
Diff to previous 1.5.2.1 (colored) next main 1.6 (colored)

Sync with HEAD.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Mar 10 16:01:13 2007 UTC (16 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.8: +7 -2 lines
Diff to previous 1.8 (colored)

Add a MUTEX_NODEBUG type that avoids allocating debugging resources for
the lock. To be used for e.g. struct vm_page until a better way is found.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Mar 9 04:50:36 2007 UTC (17 years ago) by thorpej
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Correct a comment.

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:55:15 2007 UTC (17 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.5: +4 -10 lines
Diff to previous 1.5 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Feb 26 19:11:28 2007 UTC (17 years ago) by ad
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored)

- Nuke mutex_owner()
- mutex_getowner() -> mutex_owner()

Revision 1.1.18.1 / (download) - annotate - [select for diffs], Mon Feb 26 09:12:13 2007 UTC (17 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.1: +212 -0 lines
Diff to previous 1.1 (colored)

sync with head.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Feb 19 00:31:21 2007 UTC (17 years ago) by ad
Branch: MAIN
Changes since 1.5: +4 -9 lines
Diff to previous 1.5 (colored)

MUTEX_NO_SPIN_ACTIVE_P() needs to be a macro, otherwise we end up in
circular dependency hell.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Feb 16 13:56:24 2007 UTC (17 years ago) by tsutsui
Branch: MAIN
Branch point for: yamt-idlelwp
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)

Include <machine/cpu.h> for struct cpu_info.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Feb 16 03:10:12 2007 UTC (17 years ago) by ad
Branch: MAIN
Changes since 1.3: +12 -1 lines
Diff to previous 1.3 (colored)

Add MUTEX_NO_SPIN_ACTIVE_P() to check if spin mutexes are held on
the current cpu. A generic version is provided if the architecture
does not provide one.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Feb 15 15:49:27 2007 UTC (17 years ago) by ad
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

- Add a mutex_wakeup() which clears the waiters flag and wakes all waiters.
  Will be needed to fix a problem with mutexes on sparc.
- mutex_tryenter(): fix a false "locking against myself" error.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:37 2007 UTC (17 years ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Changes since 1.1: +204 -0 lines
Diff to previous 1.1 (colored)

Merge newlock2 to head.

Revision 1.1.36.11 / (download) - annotate - [select for diffs], Thu Feb 1 05:36:20 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.1.36.10: +6 -2 lines
Diff to previous 1.1.36.10 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Handle hppa weirdness.

Revision 1.1.36.10 / (download) - annotate - [select for diffs], Tue Jan 30 15:18:28 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.1.36.9: +4 -2 lines
Diff to previous 1.1.36.9 (colored) to branchpoint 1.1 (colored)

Don't pull in <machine/intr.h> unless _KERNEL.

Revision 1.1.36.9 / (download) - annotate - [select for diffs], Sat Jan 27 14:00:02 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.1.36.8: +9 -9 lines
Diff to previous 1.1.36.8 (colored) to branchpoint 1.1 (colored)

Rename some functions to better describe what they do.

Revision 1.1.36.8 / (download) - annotate - [select for diffs], Wed Jan 17 20:26:36 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.1.36.7: +7 -6 lines
Diff to previous 1.1.36.7 (colored) to branchpoint 1.1 (colored)

Fix detection of deadlock against the big lock.

Revision 1.1.36.7 / (download) - annotate - [select for diffs], Fri Jan 12 20:18:29 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.1.36.6: +2 -2 lines
Diff to previous 1.1.36.6 (colored) to branchpoint 1.1 (colored)

Fix 'SPL NOT LOWERED ON SYSCALL EXIT' with amd64.

Revision 1.1.36.6 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:24 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.1.36.5: +4 -3 lines
Diff to previous 1.1.36.5 (colored) to branchpoint 1.1 (colored)

Sync with head.

Revision 1.1.36.5 / (download) - annotate - [select for diffs], Thu Jan 11 22:23:00 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.1.36.4: +6 -7 lines
Diff to previous 1.1.36.4 (colored) to branchpoint 1.1 (colored)

Checkpoint work in progress.

Revision 1.1.36.4 / (download) - annotate - [select for diffs], Fri Dec 29 20:27:45 2006 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.1.36.3: +68 -44 lines
Diff to previous 1.1.36.3 (colored) to branchpoint 1.1 (colored)

Checkpoint work in progress.

Revision 1.1.36.3 / (download) - annotate - [select for diffs], Fri Nov 17 16:34:40 2006 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.1.36.2: +16 -17 lines
Diff to previous 1.1.36.2 (colored) to branchpoint 1.1 (colored)

Checkpoint work in progress.

Revision 1.1.36.2 / (download) - annotate - [select for diffs], Fri Oct 20 19:45:12 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.1.36.1: +24 -8 lines
Diff to previous 1.1.36.1 (colored) to branchpoint 1.1 (colored)

- Update for lockdebug changes.
- Define mutex_getspl(), mutex_setspl() for modifying saved SPL value.

Revision 1.1.36.1 / (download) - annotate - [select for diffs], Sun Sep 10 23:42:41 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.1: +158 -0 lines
Diff to previous 1.1 (colored)

Add updated locking primatives.

Revision 1.1.2.7 / (download) - annotate - [select for diffs], Fri Mar 22 00:15:55 2002 UTC (21 years, 11 months ago) by thorpej
Branch: newlock
Changes since 1.1.2.6: +6 -1 lines
Diff to previous 1.1.2.6 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Add some minimal mutex debugging infrastructure.
* struct mutex_debug_info, which MD code adds to the kmutex_t
  when MUTEX_DEBUG is defined, contains the PC values of the
  last-locked and last-unlocked.
* MD code is expected to set last-locked in the enter fast path.
* MD code is expected to always call mutex_vector_exit() in the
  exit case.

Note: this code relies on MD code performing a tail-call to the
slow-path.

Revision 1.1.2.6 / (download) - annotate - [select for diffs], Mon Mar 18 01:16:44 2002 UTC (21 years, 11 months ago) by thorpej
Branch: newlock
Changes since 1.1.2.5: +3 -3 lines
Diff to previous 1.1.2.5 (colored) to branchpoint 1.1 (colored)

Move the inclusion of <machine/*_impl.h> to the end so that MD
code can define CPP macros for the various entry points.

Revision 1.1.2.5 / (download) - annotate - [select for diffs], Tue Mar 12 16:52:00 2002 UTC (21 years, 11 months ago) by thorpej
Branch: newlock
Changes since 1.1.2.4: +5 -3 lines
Diff to previous 1.1.2.4 (colored) to branchpoint 1.1 (colored)

Protect prototypes with _KERNEL

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Tue Mar 12 00:07:30 2002 UTC (21 years, 11 months ago) by thorpej
Branch: newlock
Changes since 1.1.2.3: +2 -1 lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored)

Implement mutex_owned() (returns true if current thread owns mutex).

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Mon Mar 11 17:08:34 2002 UTC (21 years, 11 months ago) by thorpej
Branch: newlock
Changes since 1.1.2.2: +3 -1 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored)

Implement mutex_owner().

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Mon Mar 11 00:43:13 2002 UTC (22 years ago) by thorpej
Branch: newlock
Changes since 1.1.2.1: +2 -2 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

Split the "simplelock" stuff out of lock.h into simplelock.h.  The
new __cpu_simple_lock_t basic atomic primitive is still useful, even
with the new mutex implementation.

In mutex.h, use simplelock.h rather than lock.h.

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Sun Mar 10 21:39:48 2002 UTC (22 years ago) by thorpej
Branch: newlock
Changes since 1.1: +138 -0 lines
Diff to previous 1.1 (colored)

New kernel mutex implementation, modeled after those found in Solaris
and described in:

	Solaris Internals: Core Kernel Architecture, Jim Mauro and
	    Richard McDougall, section 3.5.

Both adaptive (spin/sleep) and spin (spin + block interrupts) mutexes
are implemented.  See <sys/mutex.h> for the support that machine-dependent
code must supply.

Revision 1.1, Sun Mar 10 21:39:48 2002 UTC (22 years ago) by thorpej
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, thorpej-vnode-attr-base, thorpej-vnode-attr, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, newlock2-nbase, newlock2-base, nathanw_sa_before_merge, nathanw_sa_base, ktrace-lwp-base, ktrace-lwp, kqueue-base, kent-audio2-base, kent-audio2, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, gdamore-uart-base, gdamore-uart, elad-kernelauth-nbase, eeh-devprop-base, eeh-devprop
Branch point for: yamt-lazymbuf, newlock2, newlock
FILE REMOVED

file mutex.h was initially added on branch newlock.

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>