The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.24.10.2.4.1 / (download) - annotate - [select for diffs], Tue Dec 27 16:35:13 2011 UTC (4 months, 4 weeks ago) by matt
Branch: matt-nb5-mips64
Changes since 1.24.10.2: +74 -31 lines
Diff to previous 1.24.10.2 (colored) next main 1.24.10.3 (colored)

Backport joinable kthread support (for flash infrastructure).

Revision 1.38 / (download) - annotate - [select for diffs], Tue Nov 1 15:39:37 2011 UTC (6 months, 3 weeks ago) by jym
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, netbsd-6-base, netbsd-6, 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-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, HEAD
Changes since 1.37: +8 -4 lines
Diff to previous 1.37 (colored)

Avoid crashing when we do not explictly pass down a CPU when creating
a kthread(9) in the LSIDL (KTHREAD_IDLE) state.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Oct 29 20:11:08 2011 UTC (6 months, 3 weeks ago) by jym
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

Typo fix.

Revision 1.24.10.2.8.2 / (download) - annotate - [select for diffs], Fri Oct 14 17:25:36 2011 UTC (7 months, 1 week ago) by matt
Branch: matt-nb5-pq3
Changes since 1.24.10.2.8.1: +63 -65 lines
Diff to previous 1.24.10.2.8.1 (colored) to branchpoint 1.24.10.2 (colored) next main 1.24.10.3 (colored)

Improved kthread join support

Revision 1.24.10.3 / (download) - annotate - [select for diffs], Tue Aug 9 16:18:23 2011 UTC (9 months, 2 weeks ago) by riz
Branch: netbsd-5
Changes since 1.24.10.2: +52 -7 lines
Diff to previous 1.24.10.2 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

Pull up following revision(s) (requested by matt in ticket #1652):
	sys/sys/kthread.h: revision 1.7.10.1.8.1
	sys/kern/kern_kthread.c: revision 1.24.10.2.8.1
Pullup <a  rel="nofollow" href="http://mail-index.netbsd.org/source-changes/2010/05/11/msg009810.html">http://mail-index.netbsd.org/source-changes/2010/05/11/msg009810.html</a>
to this branch because the new flash framework will need it.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Aug 7 14:03:16 2011 UTC (9 months, 2 weeks ago) by rmind
Branch: MAIN
Changes since 1.35: +5 -5 lines
Diff to previous 1.35 (colored)

Rename slightly misleading KTHREAD_JOINABLE to KTHREAD_MUSTJOIN.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Jul 17 20:54:52 2011 UTC (10 months, 1 week ago) by joerg
Branch: MAIN
Changes since 1.34: +2 -3 lines
Diff to previous 1.34 (colored)

Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:28 2011 UTC (11 months, 2 weeks ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.30: +66 -69 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Sync with HEAD.

Revision 1.27.4.4 / (download) - annotate - [select for diffs], Tue May 31 03:05:01 2011 UTC (11 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.27.4.3: +61 -64 lines
Diff to previous 1.27.4.3 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored)

sync with head

Revision 1.34 / (download) - annotate - [select for diffs], Tue May 24 18:18:22 2011 UTC (12 months ago) by joerg
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

Use a real panic as safe guard

Revision 1.33 / (download) - annotate - [select for diffs], Thu May 19 03:07:29 2011 UTC (12 months, 1 week ago) by rmind
Branch: MAIN
Changes since 1.32: +63 -66 lines
Diff to previous 1.32 (colored)

Re-implement kthread_join(9), so that it actually works (hi haad@).

Revision 1.32 / (download) - annotate - [select for diffs], Tue Apr 26 17:40:38 2011 UTC (13 months ago) by ahoka
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

Hold the current lwp's mutex, instead of the lwp we want to wait for
in kthread_join(). This fixes panics with DIAGNOSTIC and possibly some
rare race conditons.

Revision 1.27.4.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:14 2011 UTC (14 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.27.4.2: +5 -5 lines
Diff to previous 1.27.4.2 (colored) to branchpoint 1.27 (colored)

sync with head

Revision 1.30.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 15:10:39 2011 UTC (14 months, 3 weeks ago) by bouyer
Branch: bouyer-quota2
Changes since 1.30: +5 -5 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Sync with HEAD

Revision 1.24.10.2.8.1 / (download) - annotate - [select for diffs], Sun Feb 20 07:04:15 2011 UTC (15 months ago) by matt
Branch: matt-nb5-pq3
Changes since 1.24.10.2: +52 -7 lines
Diff to previous 1.24.10.2 (colored)

Pullup http://mail-index.netbsd.org/source-changes/2010/05/11/msg009810.html
to this branch because the new flash framework will need it.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Feb 17 19:27:13 2011 UTC (15 months, 1 week ago) by matt
Branch: MAIN
CVS Tags: bouyer-quota2-nbase
Changes since 1.30: +5 -5 lines
Diff to previous 1.30 (colored)

Add support for cpu-specific uarea allocation routines.  Allows different
allocation for user and system lwps.  MIPS will use this to map uareas of
system lwp used direct-mapped addresses (to reduce the overhead of
switching to kernel threads).  ibm4xx could use to map uareas via direct
mapped addresses and avoid the problem of having the kernel stack not in
the TLB.

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:27 2010 UTC (21 months, 1 week ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.27: +54 -13 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Sync with HEAD.

Revision 1.23.2.4 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:39 2010 UTC (21 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.23.2.3: +54 -13 lines
Diff to previous 1.23.2.3 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored)

sync with head.

Revision 1.27.4.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:53 2010 UTC (22 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.27.4.1: +2 -8 lines
Diff to previous 1.27.4.1 (colored) to branchpoint 1.27 (colored)

sync with head

Revision 1.30 / (download) - annotate - [select for diffs], Sun Jun 13 04:13:31 2010 UTC (23 months, 1 week ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.29: +2 -8 lines
Diff to previous 1.29 (colored)

increment p_nrlwps in lwp_create rather than letting callers do so
as it's always decremented by lwp_exit.  this fixes error recovery of
eg. aio_procinit.

Revision 1.27.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:56 2010 UTC (23 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.27: +54 -7 lines
Diff to previous 1.27 (colored)

sync with head

Revision 1.29 / (download) - annotate - [select for diffs], Wed May 12 15:53:20 2010 UTC (2 years ago) by haad
Branch: MAIN
Changes since 1.28: +6 -6 lines
Diff to previous 1.28 (colored)

Fix bogus KASSERT, typo and KNFize my previous patch.

Revision 1.28 / (download) - annotate - [select for diffs], Tue May 11 22:26:00 2010 UTC (2 years ago) by haad
Branch: MAIN
Changes since 1.27: +54 -7 lines
Diff to previous 1.27 (colored)

Add support for kthread_join in our kernel thread implementation. This is used
by zfs but I think that it can be generaly usefull. Thread need to be created
with KTHREAD_JOINABLE flag and can be joined only once.
When joinable thread was created it will not e automatically reaped from system
and kthread_join must be called on it to reap it.

Ok by ad@.

Revision 1.23.2.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:16 2010 UTC (2 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.23.2.2: +7 -8 lines
Diff to previous 1.23.2.2 (colored) to branchpoint 1.23 (colored)

sync with head

Revision 1.27 / (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, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211, jym-xensuspend-nbase
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.26: +7 -8 lines
Diff to previous 1.26 (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.23.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:46 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.23.2.1: +17 -6 lines
Diff to previous 1.23.2.1 (colored) to branchpoint 1.23 (colored)

sync with head.

Revision 1.24.8.1 / (download) - annotate - [select for diffs], Tue Mar 3 18:32:56 2009 UTC (3 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.24: +17 -6 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Sync with HEAD.

Revision 1.24.10.2 / (download) - annotate - [select for diffs], Mon Feb 2 22:02:24 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-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-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-pq3, matt-nb5-mips64
Changes since 1.24.10.1: +4 -4 lines
Diff to previous 1.24.10.1 (colored) to branchpoint 1.24 (colored)

Pull up following revision(s) (requested by ad in ticket #397):
	sys/kern/kern_kthread.c: revision 1.26
Fix a tyop in the previous commit

Revision 1.24.10.1 / (download) - annotate - [select for diffs], Mon Feb 2 22:01:34 2009 UTC (3 years, 3 months ago) by snj
Branch: netbsd-5
Changes since 1.24: +17 -6 lines
Diff to previous 1.24 (colored)

Pull up following revision(s) (requested by ad in ticket #397):
	share/man/man9/kthread.9: revision 1.18
	sys/kern/kern_kthread.c: revision 1.25
	sys/sys/kthread.h: revision 1.8
- Allow creating timeshard kthreads. To be used to fix the RAIDframe
  parity rewrite issue.
- Create kthreads in the SCHED_RR class by default, not SCHED_FIFO.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jan 30 04:09:35 2009 UTC (3 years, 3 months ago) by agc
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, jymxensuspend-base, jym-xensuspend-base, jym-xensuspend
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored)

Fix a tyop in the previous commit

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jan 29 22:00:26 2009 UTC (3 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.24: +17 -6 lines
Diff to previous 1.24 (colored)

- Allow creating timeshard kthreads. To be used to fix the RAIDframe
  parity rewrite issue.
- Create kthreads in the SCHED_RR class by default, not SCHED_FIFO.

Revision 1.21.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:08 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.21: +5 -12 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

Sync with HEAD.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:08 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.22: +4 -11 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

sync with head.

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

sync with head.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:03 2008 UTC (4 years ago) by martin
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, mjf-devfs2-base, 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.23: +2 -9 lines
Diff to previous 1.23 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.23 / (download) - annotate - [select for diffs], Thu Apr 24 18:39:24 2008 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since
we no longer need to guard against access from hardware interrupt handlers.

Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the
child process share the parent's lock so that signal state may be kept in
sync. Partially addresses PR kern/37437.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Apr 12 17:16:09 2008 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

Move the LW_BOUND flag into the thread-private flag word. It can be tested
by other threads/CPUs but that is only done when the LWP is known to be in a
quiescent state (for example, on a run queue).

Revision 1.18.8.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:59 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.18.8.2: +3 -3 lines
Diff to previous 1.18.8.2 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

sync with HEAD

Revision 1.15.18.5 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:55 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.15.18.4: +3 -3 lines
Diff to previous 1.15.18.4 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

sync with head.

Revision 1.18.14.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:45 2008 UTC (4 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.18.14.1: +5 -5 lines
Diff to previous 1.18.14.1 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

Sync with HEAD.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Feb 14 14:26:57 2008 UTC (4 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Make schedstate_percpu::spc_lwplock an exernally allocated item. Remove
the hacks in sparc/cpu.c to reinitialize it. This should be in its own
cache line but that's another change.

Revision 1.15.18.4 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:05 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.15.18.3: +4 -4 lines
Diff to previous 1.15.18.3 (colored) to branchpoint 1.15 (colored)

sync with head

Revision 1.18.8.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:03 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.18.8.1: +4 -4 lines
Diff to previous 1.18.8.1 (colored) to branchpoint 1.18 (colored)

sync with HEAD

Revision 1.19.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:55:51 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

Sync with HEAD

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:50 2008 UTC (4 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored)

Merge vmlocking2 to head.

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:03:13 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

Pull the vmlocking changes into a new branch.

Revision 1.18.14.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:38 2007 UTC (4 years, 6 months ago) by mjf
Branch: mjf-devfs
Changes since 1.18: +12 -12 lines
Diff to previous 1.18 (colored)

Sync with HEAD.

Revision 1.15.18.3 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:41 2007 UTC (4 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.15.18.2: +12 -12 lines
Diff to previous 1.15.18.2 (colored) to branchpoint 1.15 (colored)

sync with head.

Revision 1.18.12.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:02:04 2007 UTC (4 years, 6 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.18: +12 -12 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Sync with HEAD

Revision 1.18.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:31:37 2007 UTC (4 years, 6 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.18: +12 -12 lines
Diff to previous 1.18 (colored)

sync with HEAD

Revision 1.18.6.1 / (download) - annotate - [select for diffs], Tue Nov 6 19:25:28 2007 UTC (4 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.18: +12 -12 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Sync with HEAD.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Nov 6 00:42:41 2007 UTC (4 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.18: +12 -12 lines
Diff to previous 1.18 (colored)

Merge scheduler changes from the vmlocking branch. All discussed on
tech-kern:

- Invert priority space so that zero is the lowest priority. Rearrange
  number and type of priority levels into bands. Add new bands like
  'kernel real time'.
- Ignore the priority level passed to tsleep. Compute priority for
  sleep dynamically.
- For SCHED_4BSD, make priority adjustment per-LWP, not per-process.

Revision 1.16.6.14 / (download) - annotate - [select for diffs], Mon Nov 5 16:51:52 2007 UTC (4 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.16.6.13: +3 -3 lines
Diff to previous 1.16.6.13 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

Expand the LWP priority space again to include 32 levels for kthreads,
so that they always run before user processes.

Revision 1.16.6.13 / (download) - annotate - [select for diffs], Thu Nov 1 21:58:18 2007 UTC (4 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.16.6.12: +7 -7 lines
Diff to previous 1.16.6.12 (colored) to branchpoint 1.16 (colored)

- Fix interactivity problems under high load. Beacuse soft interrupts
  are being stacked on top of regular LWPs, more often than not aston()
  was being called on a soft interrupt thread instead of a user thread,
  meaning that preemption was not happening on EOI.

- Don't use bool in a couple of data structures. Sub-word writes are not
  always atomic and may clobber other fields in the containing word.

- For SCHED_4BSD, make p_estcpu per thread (l_estcpu). Rework how the
  dynamic priority level is calculated - it's much better behaved now.

- Kill the l_usrpri/l_priority split now that priorities are no longer
  directly assigned by tsleep(). There are three fields describing LWP
  priority:

        l_priority: Dynamic priority calculated by the scheduler.
                This does not change for kernel/realtime threads,
                and always stays within the correct band. Eg for
                timeshared LWPs it never moves out of the user
                priority range. This is basically what l_usrpri
                was before.

        l_inheritedprio: Lent to the LWP due to priority inheritance
                (turnstiles).

        l_kpriority: A boolean value set true the first time an LWP
                sleeps within the kernel. This indicates that the LWP
                should get a priority boost as compensation for blocking.
                lwp_eprio() now does the equivalent of sched_kpri() if
                the flag is set. The flag is cleared in userret().

- Keep track of scheduling class (OTHER, FIFO, RR) in struct lwp, and use
  this to make decisions in a few places where we previously tested for a
  kernel thread.

- Partially fix itimers and usr/sys/intr time accounting in the presence
  of software interrupts.

- Use kthread_create() to create idle LWPs. Move priority definitions
  from the various modules into sys/param.h.

- newlwp -> lwp_create

Revision 1.16.6.12 / (download) - annotate - [select for diffs], Tue Oct 23 11:32:50 2007 UTC (4 years, 7 months ago) by yamt
Branch: vmlocking
Changes since 1.16.6.11: +4 -4 lines
Diff to previous 1.16.6.11 (colored) to branchpoint 1.16 (colored)

kthread_create: don't hold locks when manipulating local variables.

Revision 1.16.6.11 / (download) - annotate - [select for diffs], Thu Oct 18 22:45:53 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.16.6.10: +3 -3 lines
Diff to previous 1.16.6.10 (colored) to branchpoint 1.16 (colored)

Free uareas back to the uarea cache on the CPU where they were last used.

Revision 1.16.6.10 / (download) - annotate - [select for diffs], Thu Oct 18 15:47:32 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.16.6.9: +3 -3 lines
Diff to previous 1.16.6.9 (colored) to branchpoint 1.16 (colored)

Update for soft interrupt changes. See kern_softint.c 1.1.2.17 for details.

Revision 1.15.18.2 / (download) - annotate - [select for diffs], Mon Sep 3 14:40:48 2007 UTC (4 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.15.18.1: +101 -81 lines
Diff to previous 1.15.18.1 (colored) to branchpoint 1.15 (colored)

sync with head.

Revision 1.16.6.9 / (download) - annotate - [select for diffs], Thu Aug 23 19:28:15 2007 UTC (4 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.16.6.8: +4 -4 lines
Diff to previous 1.16.6.8 (colored) to branchpoint 1.16 (colored)

- Remove most calls to get kernel_lock during fault handling.
- By default start new LWPs without kernel_lock. Those returning to
  userspace don't need it.

Revision 1.16.6.8 / (download) - annotate - [select for diffs], Sun Jul 15 15:52:54 2007 UTC (4 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.16.6.7: +8 -4 lines
Diff to previous 1.16.6.7 (colored) to branchpoint 1.16 (colored)

Sync with head.

Revision 1.16.8.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:09:49 2007 UTC (4 years, 10 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.16: +101 -81 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Sync with head.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jul 10 23:06:56 2007 UTC (4 years, 10 months ago) by ad
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: mjf-devfs, matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.17: +8 -4 lines
Diff to previous 1.17 (colored)

kthread_exit: l->l_name could be NULL.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jul 9 21:10:52 2007 UTC (4 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.16: +95 -79 lines
Diff to previous 1.16 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.16.6.7 / (download) - annotate - [select for diffs], Sun Jul 1 22:10:14 2007 UTC (4 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.16.6.6: +6 -2 lines
Diff to previous 1.16.6.6 (colored) to branchpoint 1.16 (colored)

Make kthread_create() work with schedulers that use per-CPU locks.
Pointed out by rmind@.

Revision 1.16.6.6 / (download) - annotate - [select for diffs], Sun Jun 17 21:31:21 2007 UTC (4 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.16.6.5: +3 -5 lines
Diff to previous 1.16.6.5 (colored) to branchpoint 1.16 (colored)

- Increase the number of thread priorities from 128 to 256. How the space
  is set up is to be revisited.
- Implement soft interrupts as kernel threads. A generic implementation
  is provided, with hooks for fast-path MD code that can run the interrupt
  threads over the top of other threads executing in the kernel.
- Split vnode::v_flag into three fields, depending on how the flag is
  locked (by the interlock, by the vnode lock, by the file system).
- Miscellaneous locking fixes and improvements.

Revision 1.16.6.5 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:18 2007 UTC (4 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.16.6.4: +9 -3 lines
Diff to previous 1.16.6.4 (colored) to branchpoint 1.16 (colored)

Sync with head.

Revision 1.16.6.4 / (download) - annotate - [select for diffs], Sun May 13 17:36:34 2007 UTC (5 years ago) by ad
Branch: vmlocking
Changes since 1.16.6.3: +54 -14 lines
Diff to previous 1.16.6.3 (colored) to branchpoint 1.16 (colored)

- Pass the error number and residual count to biodone(), and let it handle
  setting error indicators. Prepare to eliminate B_ERROR.
- Add a flag argument to brelse() to be set into the buf's flags, instead
  of doing it directly. Typically used to set B_INVAL.
- Add a "struct cpu_info *" argument to kthread_create(), to be used to
  create bound threads. Change "bool mpsafe" to "int flags".
- Allow exit of LWPs in the IDL state when (l != curlwp).
- More locking fixes & conversion to the new API.

Revision 1.16.6.3 / (download) - annotate - [select for diffs], Tue Apr 10 18:34:46 2007 UTC (5 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.16.6.2: +6 -9 lines
Diff to previous 1.16.6.2 (colored) to branchpoint 1.16 (colored)

- Free the uarea if newlwp fails.
- Cosmetic changes.

Revision 1.16.6.2 / (download) - annotate - [select for diffs], Tue Apr 10 12:07:13 2007 UTC (5 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.16.6.1: +9 -59 lines
Diff to previous 1.16.6.1 (colored) to branchpoint 1.16 (colored)

Nuke the deferred kthread creation stuff, as it's no longer needed.
Pointed out by thorpej@.

Revision 1.16.6.1 / (download) - annotate - [select for diffs], Mon Apr 9 22:10:02 2007 UTC (5 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.16: +53 -32 lines
Diff to previous 1.16 (colored)

- Add two new arguments to kthread_create1: pri_t pri, bool mpsafe.
- Fork kthreads off proc0 as new LWPs, not new processes.

Revision 1.15.18.1 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:06 2007 UTC (5 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.15: +8 -13 lines
Diff to previous 1.15 (colored)

sync with head.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:30 2007 UTC (5 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, yamt-idlelwp, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, post-newlock2-merge, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.15: +8 -13 lines
Diff to previous 1.15 (colored)

Merge newlock2 to head.

Revision 1.15.48.1 / (download) - annotate - [select for diffs], Fri Oct 20 21:33:18 2006 UTC (5 years, 7 months ago) by ad
Branch: newlock2
Changes since 1.15: +8 -13 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

- Pass FORK_SYSTEM to fork() and have it set up kthreads correctly.
- Acquire p->p_smutex where appropriate.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Jan 18 10:06:26 2003 UTC (9 years, 4 months 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-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-pdpolicy-base9, 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, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, thorpej-vnode-attr-base, thorpej-vnode-attr, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, peter-altq-base, peter-altq, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, matt-timespec, matt-nb4-arm-base, matt-nb4-arm, ktrace-lwp-base, ktrace-lwp, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-lazymbuf, newlock2
Changes since 1.14: +5 -4 lines
Diff to previous 1.14 (colored)

Merge the nathanw_sa branch.

Revision 1.11.2.7 / (download) - annotate - [select for diffs], Wed Dec 11 06:43:04 2002 UTC (9 years, 5 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.11.2.6: +3 -3 lines
Diff to previous 1.11.2.6 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

Sync with HEAD.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Nov 17 08:32:44 2002 UTC (9 years, 6 months ago) by chs
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

change uvm_uarea_alloc() to indicate whether the returned uarea is already
backed by physical pages (ie. because it reused a previously-freed one),
so that we can skip a bunch of useless work in that case.
this fixes the underlying problem behind PR 18543, and also speeds up fork()
quite a bit (eg. 7% on my pc, 1% on my ultra2) when we get a cache hit.

Revision 1.11.2.6 / (download) - annotate - [select for diffs], Wed Jul 17 18:03:48 2002 UTC (9 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.11.2.5: +3 -3 lines
Diff to previous 1.11.2.5 (colored) to branchpoint 1.11 (colored)

Whitespace.

Revision 1.11.2.5 / (download) - annotate - [select for diffs], Fri Jul 12 01:40:16 2002 UTC (9 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.11.2.4: +2 -3 lines
Diff to previous 1.11.2.4 (colored) to branchpoint 1.11 (colored)

No longer need to pull in lwp.h; proc.h pulls it in for us.

Revision 1.11.2.4 / (download) - annotate - [select for diffs], Mon Jun 24 22:10:44 2002 UTC (9 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.11.2.3: +4 -4 lines
Diff to previous 1.11.2.3 (colored) to branchpoint 1.11 (colored)

Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).

Revision 1.11.4.2 / (download) - annotate - [select for diffs], Sun Jun 23 17:49:28 2002 UTC (9 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.11.4.1: +3 -3 lines
Diff to previous 1.11.4.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

catch up with -current on kqueue branch

Revision 1.12.8.1 / (download) - annotate - [select for diffs], Thu Jun 20 16:02:20 2002 UTC (9 years, 11 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

catch up with -current.

Revision 1.11.2.3 / (download) - annotate - [select for diffs], Thu Jun 20 03:47:13 2002 UTC (9 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.11.2.2: +3 -3 lines
Diff to previous 1.11.2.2 (colored) to branchpoint 1.11 (colored)

Catch up to -current.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jun 1 23:51:05 2002 UTC (9 years, 11 months ago) by lukem
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gehenna-devsw-base
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field).  whilst it's O(n),
  this mirrors the functionality of SLIST_REMOVE() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
  this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups

Revision 1.11.4.1 / (download) - annotate - [select for diffs], Thu Jan 10 19:59:48 2002 UTC (10 years, 4 months ago) by thorpej
Branch: kqueue
Changes since 1.11: +4 -1 lines
Diff to previous 1.11 (colored)

Sync kqueue branch with -current.

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:35 2001 UTC (10 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.11.2.1: +4 -1 lines
Diff to previous 1.11.2.1 (colored) to branchpoint 1.11 (colored)

Catch up to -current.

Revision 1.11.8.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:47 2001 UTC (10 years, 6 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.11: +4 -1 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:10 2001 UTC (10 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, ifpoll, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.11: +4 -1 lines
Diff to previous 1.11 (colored)

add RCSIDs

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:40 2001 UTC (11 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.11: +6 -4 lines
Diff to previous 1.11 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:09:00 2000 UTC (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.8: +7 -22 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jul 14 07:15:05 2000 UTC (11 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache, nathanw_sa, kqueue
Changes since 1.10: +5 -17 lines
Diff to previous 1.10 (colored)

ANSI'ify.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:09:07 2000 UTC (11 years, 11 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.9: +2 -5 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.10 / (download) - annotate - [select for diffs], Sun May 28 05:49:06 2000 UTC (12 years ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5
Changes since 1.9: +2 -5 lines
Diff to previous 1.9 (colored)

Rather than starting init and creating kthreads by forking and then
doing a cpu_set_kpc(), just pass the entry point and argument all
the way down the fork path starting with fork1().  In order to
avoid special-casing the normal fork in every cpu_fork(), MI code
passes down child_return() and the child process pointer explicitly.

This fixes a race condition on multiprocessor systems; a CPU could
grab the newly created processes (which has been placed on a run queue)
before cpu_set_kpc() would be performed.

Revision 1.9 / (download) - annotate - [select for diffs], Mon May 8 19:59:48 2000 UTC (12 years ago) by thorpej
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

__predict_false() fork1() failing.

Revision 1.3.4.2 / (download) - annotate - [select for diffs], Mon Aug 2 22:19:12 1999 UTC (12 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.3.4.1: +14 -4 lines
Diff to previous 1.3.4.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Update from trunk.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jul 6 21:44:10 1999 UTC (12 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase, chs-ubc2-base
Branch point for: thorpej_scsipi
Changes since 1.7: +14 -4 lines
Diff to previous 1.7 (colored)

Make the kthread API a bit more friendly to loadable kernel modules.

Revision 1.3.4.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:24:01 1999 UTC (12 years, 11 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.3: +5 -4 lines
Diff to previous 1.3 (colored)

Sync w/ -current.

Revision 1.7 / (download) - annotate - [select for diffs], Thu May 13 21:58:37 1999 UTC (13 years ago) by thorpej
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Allow the caller to specify a stack for the child process.  If NULL,
the child inherits the stack pointer from the parent (traditional
behavior).  Like the signal stack, the stack area is secified as
a low address and a size; machine-dependent code accounts for stack
direction.

This is required for clone(2).

Revision 1.6 / (download) - annotate - [select for diffs], Thu May 13 00:59:04 1999 UTC (13 years ago) by thorpej
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Allow an alternate exit signal (i.e. not SIGCHLD) to be delivered to the
parent, specified at fork time.  Specify a new flag to wait4(2), WALTSIG,
to wait for processes which use an alternate exit signal.

This is required for clone(2).

Revision 1.5 / (download) - annotate - [select for diffs], Fri Apr 30 21:40:30 1999 UTC (13 years ago) by thorpej
Branch: MAIN
Changes since 1.4: +4 -3 lines
Diff to previous 1.4 (colored)

Share everything with proc0.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Apr 12 00:24:17 1999 UTC (13 years, 1 month ago) by gwr
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

minor nits -- replace vsprintf with vsnprinf

Revision 1.3 / (download) - annotate - [select for diffs], Tue Dec 22 21:21:36 1998 UTC (13 years, 5 months ago) by kleink
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

#ifdef __STDC__ -> #if __STDC__

Revision 1.2 / (download) - annotate - [select for diffs], Sat Nov 14 00:08:49 1998 UTC (13 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.1: +46 -1 lines
Diff to previous 1.1 (colored)

Implement a way to queue kernel threads for creation after init,
pagedaemon, reaper, etc.  Caller provides a callback function and
argument which will be called to create the threads.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Nov 11 22:44:24 1998 UTC (13 years, 6 months ago) by thorpej
Branch: MAIN

Move fork_kthread() to a new file, kern_kthread.c, and rename it to
kthread_create().  Implement kthread_exit() (causes a thrad to exit).
Set P_NOCLDWAIT on kernel threads, which will cause any of their children
to be reparented to init(8) (which is already prepared to wait out orphaned
processes).

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>