The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.50 / (download) - annotate - [select for diffs], Sun Apr 9 09:18:09 2023 UTC (11 months, 2 weeks ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.49: +4 -3 lines
Diff to previous 1.49 (colored) to selected 1.32 (colored)

kern: KASSERT(A && B) -> KASSERT(A); KASSERT(B)

Revision 1.49 / (download) - annotate - [select for diffs], Sat May 23 23:42:43 2020 UTC (3 years, 10 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, netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, 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
Changes since 1.48: +8 -8 lines
Diff to previous 1.48 (colored) to selected 1.32 (colored)

Move proc_lock into the data segment.  It was dynamically allocated because
at the time we had mutex_obj_alloc() but not __cacheline_aligned.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Apr 29 01:53:48 2020 UTC (3 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.47: +8 -2 lines
Diff to previous 1.47 (colored) to selected 1.32 (colored)

Sanitize the pid and lid arguments passed to do_sched_getparam()
and sys__sched_getaffinity() now that -1 as the pid argument to
lwp_find2() means "wildcard proc".

Revision 1.46.16.1 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:52 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.46: +2 -3 lines
Diff to previous 1.46 (colored) next main 1.47 (colored) to selected 1.32 (colored)

Merge changes from current as of 20200406

Revision 1.46.22.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:21:03 2020 UTC (4 years ago) by ad
Branch: ad-namecache
Changes since 1.46: +2 -3 lines
Diff to previous 1.46 (colored) next main 1.47 (colored) to selected 1.32 (colored)

Sync with head.

Revision 1.47 / (download) - annotate - [select for diffs], Mon Jan 27 22:05:10 2020 UTC (4 years, 2 months ago) by ad
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.46: +2 -3 lines
Diff to previous 1.46 (colored) to selected 1.32 (colored)

Remove comment that is out of date and I think hinting at something other
than what it says (preemption case for SCHED_FIFO).

Revision 1.42.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:45 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.42.2.1: +63 -1 lines
Diff to previous 1.42.2.1 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored) to selected 1.32 (colored)

update from HEAD

Revision 1.43.6.2 / (download) - annotate - [select for diffs], Wed Oct 5 20:56:03 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.43.6.1: +8 -8 lines
Diff to previous 1.43.6.1 (colored) to branchpoint 1.43 (colored) next main 1.44 (colored) to selected 1.32 (colored)

Sync with HEAD

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Sat Aug 6 00:19:09 2016 UTC (7 years, 7 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored) next main 1.46 (colored) to selected 1.32 (colored)

Sync with HEAD

Revision 1.46 / (download) - annotate - [select for diffs], Sat Jul 30 15:38:17 2016 UTC (7 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, 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, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, 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, 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, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: phil-wifi, ad-namecache
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored) to selected 1.32 (colored)

Fix reversed test.

Revision 1.43.6.1 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:20 2016 UTC (7 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.43: +65 -3 lines
Diff to previous 1.43 (colored) to selected 1.32 (colored)

Sync with HEAD

Revision 1.45 / (download) - annotate - [select for diffs], Thu Jul 7 06:55:43 2016 UTC (7 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160726, nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored) to selected 1.32 (colored)

KNF. Remove extra spaces. No functional change.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Jul 3 14:24:59 2016 UTC (7 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.43: +64 -2 lines
Diff to previous 1.43 (colored) to selected 1.32 (colored)

GSoC 2016 Charles Cui: Implement thread priority protection based on work
by Andy Doran. Also document the get/set pshared thread calls as not
implemented, and add a skeleton implementation that is disabled.
XXX: document _sched_protect(2).

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:29 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.42: +2 -7 lines
Diff to previous 1.42 (colored) to selected 1.32 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.38.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:41:03 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.38.2.2: +2 -7 lines
Diff to previous 1.38.2.2 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored) to selected 1.32 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.42.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:07 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.42: +2 -7 lines
Diff to previous 1.42 (colored) next main 1.43 (colored) to selected 1.32 (colored)

sync with head

Revision 1.43 / (download) - annotate - [select for diffs], Tue Feb 25 18:30:11 2014 UTC (10 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, 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
Branch point for: nick-nhusb
Changes since 1.42: +2 -7 lines
Diff to previous 1.42 (colored) to selected 1.32 (colored)

Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.

Revision 1.38.2.2 / (download) - annotate - [select for diffs], Wed May 23 10:08:12 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.38.2.1: +3 -3 lines
Diff to previous 1.38.2.1 (colored) to branchpoint 1.38 (colored) to selected 1.32 (colored)

sync with head.

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Wed May 9 03:22:54 2012 UTC (11 years, 10 months ago) by riz
Branch: netbsd-6
CVS Tags: 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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored) next main 1.40 (colored) to selected 1.32 (colored)

Pull up following revision(s) (requested by rmind in ticket #202):
	sys/arch/x86/include/cpuvar.h: revision 1.46
	sys/arch/xen/include/xenpmap.h: revision 1.34
	sys/arch/i386/include/param.h: revision 1.77
	sys/arch/x86/x86/pmap_tlb.c: revision 1.5
	sys/arch/x86/x86/pmap_tlb.c: revision 1.6
	sys/arch/i386/i386/genassym.cf: revision 1.92
	sys/arch/xen/x86/cpu.c: revision 1.91
	sys/arch/x86/x86/pmap.c: revision 1.177
	sys/arch/xen/x86/xen_pmap.c: revision 1.21
	sys/arch/x86/acpi/acpi_wakeup.c: revision 1.31
	sys/kern/subr_kcpuset.c: revision 1.5
	sys/arch/amd64/include/param.h: revision 1.18
	sys/sys/kcpuset.h: revision 1.5
	sys/arch/x86/x86/mtrr_i686.c: revision 1.26
	sys/arch/x86/x86/mtrr_i686.c: revision 1.27
	sys/arch/xen/x86/x86_xpmap.c: revision 1.43
	sys/arch/x86/x86/cpu.c: revision 1.98
	sys/arch/amd64/amd64/mptramp.S: revision 1.14
	sys/kern/sys_sched.c: revision 1.42
	sys/arch/amd64/amd64/genassym.cf: revision 1.50
	sys/arch/i386/i386/mptramp.S: revision 1.24
	sys/arch/x86/include/pmap.h: revision 1.52
	sys/arch/x86/include/cpu.h: revision 1.50
- Convert x86 MD code, mainly pmap(9) e.g. TLB shootdown code, to use
  kcpuset(9) and thus replace hardcoded CPU bitmasks.  This removes the
  limitation of maximum CPUs.
- Support up to 256 CPUs on amd64 architecture by default.
Bug fixes, improvements, completion of Xen part and testing on 64-core
AMD Opteron(tm) Processor 6282 SE (also, as Xen HVM domU with 128 CPUs)
by Manuel Bouyer.
- pmap_tlb_shootdown: do not overwrite tp_cpumask with pm_cpus, but merge
  like pm_kernel_cpus.  Remove unecessary intersection with kcpuset_running.
  Do not reset tp_userpmap if pmap_kernel().
- Remove pmap_tlb_mailbox_t wrapping, which is pointless after recent changes.
- pmap_tlb_invalidate, pmap_tlb_intr: constify for packet structure.
i686_mtrr_init_first: handle the case when there are no variable-size MTRR
registers available (i686_mtrr_vcnt == 0).

Revision 1.38.6.3 / (download) - annotate - [select for diffs], Sun Apr 29 23:05:05 2012 UTC (11 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.38.6.2: +24 -7 lines
Diff to previous 1.38.6.2 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored) to selected 1.32 (colored)

sync to latest -current.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Apr 20 22:23:25 2012 UTC (11 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored) to selected 1.32 (colored)

- Convert x86 MD code, mainly pmap(9) e.g. TLB shootdown code, to use
  kcpuset(9) and thus replace hardcoded CPU bitmasks.  This removes the
  limitation of maximum CPUs.

- Support up to 256 CPUs on amd64 architecture by default.

Bug fixes, improvements, completion of Xen part and testing on 64-core
AMD Opteron(tm) Processor 6282 SE (also, as Xen HVM domU with 128 CPUs)
by Manuel Bouyer.

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:29 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.38: +25 -25 lines
Diff to previous 1.38 (colored) to selected 1.32 (colored)

sync with head

Revision 1.41 / (download) - annotate - [select for diffs], Fri Apr 13 15:27:13 2012 UTC (11 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pagecache-base4
Changes since 1.40: +23 -6 lines
Diff to previous 1.40 (colored) to selected 1.32 (colored)

- do_sched_getparam: release locks earlier.
- add comments

Revision 1.38.6.2 / (download) - annotate - [select for diffs], Fri Feb 24 09:11:48 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.38.6.1: +2 -20 lines
Diff to previous 1.38.6.1 (colored) to branchpoint 1.38 (colored) to selected 1.32 (colored)

sync to -current.

Revision 1.40 / (download) - annotate - [select for diffs], Sun Feb 19 21:06:56 2012 UTC (12 years, 1 month ago) by rmind
Branch: MAIN
CVS Tags: jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3
Changes since 1.39: +2 -20 lines
Diff to previous 1.39 (colored) to selected 1.32 (colored)

Remove COMPAT_SA / KERN_SA.  Welcome to 6.99.3!
Approved by core@.

Revision 1.38.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:33 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.38: +4 -3 lines
Diff to previous 1.38 (colored) to selected 1.32 (colored)

merge to -current.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Jan 29 22:55:40 2012 UTC (12 years, 2 months ago) by rmind
Branch: MAIN
CVS Tags: netbsd-6-base, jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.38: +4 -3 lines
Diff to previous 1.38 (colored) to selected 1.32 (colored)

- Add mi_cpu_init() and initialise cpu_lock and kcpuset_attached/running there.
- Add kcpuset_running which gets set in idle_loop().
- Use kcpuset_running in pserialize_perform().

Revision 1.38 / (download) - annotate - [select for diffs], Sun Aug 7 21:38:32 2011 UTC (12 years, 7 months ago) by rmind
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.37: +3 -3 lines
Diff to previous 1.37 (colored) to selected 1.32 (colored)

- Add an argument to kcpuset_create() for zeroing.
- Add kcpuset_atomic_set(), kcpuset_atomic_clear() and kcpuset_merge().

Revision 1.37 / (download) - annotate - [select for diffs], Sun Aug 7 21:13:05 2011 UTC (12 years, 7 months ago) by rmind
Branch: MAIN
Changes since 1.36: +16 -16 lines
Diff to previous 1.36 (colored) to selected 1.32 (colored)

Remove LW_AFFINITY flag and fix some bugs affinity mask handling.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Aug 7 13:33:01 2011 UTC (12 years, 7 months ago) by rmind
Branch: MAIN
Changes since 1.35: +42 -28 lines
Diff to previous 1.35 (colored) to selected 1.32 (colored)

Add kcpuset(9) - a reworked dynamic CPU set implementation for kernel.
Suitable for use during the early boot.  MD and other implementations
should be replaced with this interface.

Discussed on: tech-kern@

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:31 2010 UTC (13 years, 7 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored) next main 1.35 (colored) to selected 1.32 (colored)

Sync with HEAD.

Revision 1.21.2.3 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:42 2010 UTC (13 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.21.2.2: +4 -4 lines
Diff to previous 1.21.2.2 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored) to selected 1.32 (colored)

sync with head.

Revision 1.34.4.1 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:55 2010 UTC (13 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored) next main 1.35 (colored) to selected 1.32 (colored)

sync with head

Revision 1.35 / (download) - annotate - [select for diffs], Thu Jul 1 02:38:31 2010 UTC (13 years, 9 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored) to selected 1.32 (colored)

Remove pfind() and pgfind(), fix locking in various broken uses of these.
Rename real routines to proc_find() and pgrp_find(), remove PFIND_* flags
and have consistent behaviour.  Provide proc_find_raw() for special cases.
Fix memory leak in sysctl_proc_corename().

COMPAT_LINUX: rework ptrace() locking, minimise differences between
different versions per-arch.

Note: while this change adds some formal cosmetics for COMPAT_DARWIN and
COMPAT_IRIX - locking there is utterly broken (for ages).

Fixes PR/43176.

Revision 1.21.2.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:19 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.21.2.1: +66 -3 lines
Diff to previous 1.21.2.1 (colored) to branchpoint 1.21 (colored) to selected 1.32 (colored)

sync with head

Revision 1.34 / (download) - annotate - [select for diffs], Sat Oct 3 22:32:56 2009 UTC (14 years, 5 months ago) by elad
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.33: +66 -3 lines
Diff to previous 1.33 (colored) to selected 1.32 (colored)

- Move sched_listener and co. from kern_synch.c to sys_sched.c, where it
  really belongs (suggested by rmind@),

- Rename sched_init() to synch_init(), and introduce a new sched_init()
  in sys_sched.c where we (a) initialize the sysctl node (no more
  link-set) and (b) listen on the process scope with sched_listener.

Reviewed by and okay rmind@.

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:57 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

Sync with HEAD.

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

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Mon May 4 08:13:48 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.21: +154 -79 lines
Diff to previous 1.21 (colored) to selected 1.32 (colored)

sync with head.

Revision 1.30.2.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:00 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.30.2.2: +3 -3 lines
Diff to previous 1.30.2.2 (colored) to branchpoint 1.30 (colored) next main 1.31 (colored) to selected 1.32 (colored)

Sync with HEAD.

Revision 1.30.4.3 / (download) - annotate - [select for diffs], Sun Mar 8 03:15:36 2009 UTC (15 years 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-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.30.4.2: +3 -3 lines
Diff to previous 1.30.4.2 (colored) to branchpoint 1.30 (colored) next main 1.31 (colored) to selected 1.32 (colored)

Pull up following revision(s) (requested by rmind in ticket #546):
	sys/kern/kern_lwp.c: revision 1.128
	sys/kern/sys_pset.c: revision 1.12
	sys/kern/sys_sched.c: revision 1.33
lwp_create: fix the locking bugs on affinity ingerition path (mea culpa).
pset_assign: traverse the list of LWPs safely.
sched_setaffinity: free cpuset (unused path) outside the lock.
Reviewed (with feedback) by <ad>.

Revision 1.33 / (download) - annotate - [select for diffs], Tue Mar 3 21:55:06 2009 UTC (15 years ago) by rmind
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-base, jymxensuspend-base, jym-xensuspend-base
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

lwp_create: fix the locking bugs on affinity ingerition path (mea culpa).
pset_assign: traverse the list of LWPs safely.
sched_setaffinity: free cpuset (unused path) outside the lock.

Reviewed (with feedback) by <ad>.

Revision 1.30.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:32:56 2009 UTC (15 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.30.2.1: +30 -16 lines
Diff to previous 1.30.2.1 (colored) to branchpoint 1.30 (colored) to selected 1.32 (colored)

Sync with HEAD.

Revision 1.30.4.2 / (download) - annotate - [select for diffs], Thu Jan 22 20:42:46 2009 UTC (15 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC2, netbsd-5-0-RC1
Changes since 1.30.4.1: +30 -16 lines
Diff to previous 1.30.4.1 (colored) to branchpoint 1.30 (colored) to selected 1.32 (colored)

Pull up following revision(s) (requested by rmind in ticket #291):
	lib/libpthread/affinity.3: revision 1.4
	lib/librt/pset.3: revision 1.8
	sys/kern/sys_pset.c: revision 1.10
	sys/kern/sys_sched.c: revision 1.32
- Make thread-affinity and processor-set interfaces mutually exlusive.
- pset_assign: when CPU is assigned, migrate out all LWPs from it.

Revision 1.32 / (download) - annotate - [selected], Tue Jan 20 01:57:35 2009 UTC (15 years, 2 months ago) by rmind
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Changes since 1.31: +30 -16 lines
Diff to previous 1.31 (colored)

- Make thread-affinity and processor-set interfaces mutually exlusive.
- pset_assign: when CPU is assigned, migrate out all LWPs from it.

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:39 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.30: +45 -28 lines
Diff to previous 1.30 (colored) to selected 1.32 (colored)

Sync with HEAD.

Revision 1.15.6.5 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:20 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.15.6.4: +87 -56 lines
Diff to previous 1.15.6.4 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored) to selected 1.32 (colored)

Sync with HEAD.

Revision 1.26.2.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:09 2008 UTC (15 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.26.2.1: +45 -28 lines
Diff to previous 1.26.2.1 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored) to selected 1.32 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.30.4.1 / (download) - annotate - [select for diffs], Thu Nov 13 00:04:07 2008 UTC (15 years, 4 months ago) by snj
Branch: netbsd-5
Changes since 1.30: +45 -28 lines
Diff to previous 1.30 (colored) to selected 1.32 (colored)

Pull up following revision(s) (requested by rmind in ticket #48):
	sys/kern/kern_cpu.c: revision 1.37
	sys/arch/x86/x86/cpu.c: revision 1.58
	sys/arch/xen/x86/cpu.c: revision 1.29
	sys/sys/cpu.h: revision 1.24
	sys/kern/sys_sched.c: revision 1.31
- Avoid the race with CPU online/offline state changes, when setting the
  affinity (cpu_lock protects these operations now).
- Disallow setting of state of CPU to to offline, if there are bound LWPs,
  which have no CPU to migrate.
- Disallow setting of affinity for the LWP(s), if all CPUs in the dynamic
  CPU-set are offline.
- sched_setaffinity: fix invalid check of kcpuset_isset().
- Rename cpu_setonline() to cpu_setstate().
Should fix PR/39349.

Revision 1.31 / (download) - annotate - [select for diffs], Fri Oct 31 00:36:22 2008 UTC (15 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.30: +45 -28 lines
Diff to previous 1.30 (colored) to selected 1.32 (colored)

- Avoid the race with CPU online/offline state changes, when setting the
  affinity (cpu_lock protects these operations now).
- Disallow setting of state of CPU to to offline, if there are bound LWPs,
  which have no CPU to migrate.
- Disallow setting of affinity for the LWP(s), if all CPUs in the dynamic
  CPU-set are offline.
- sched_setaffinity: fix invalid check of kcpuset_isset().
- Rename cpu_setonline() to cpu_setstate().

Should fix PR/39349.

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:28 2008 UTC (15 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.26: +60 -41 lines
Diff to previous 1.26 (colored) to selected 1.32 (colored)

Sync with HEAD.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Oct 18 19:24:04 2008 UTC (15 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: netbsd-5-base, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored) to selected 1.32 (colored)

Obviously intention was to check for SCHED_OTHER, not SCHED_FIFO.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Oct 18 03:40:18 2008 UTC (15 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.28: +29 -41 lines
Diff to previous 1.28 (colored) to selected 1.32 (colored)

Disallow user priority adjustments for SCHED_OTHER policy, simplify
convert_pri().  Sync schedctl(8) with the change.  Closes PR/38009.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Oct 15 06:51:20 2008 UTC (15 years, 5 months ago) by wrstuden
Branch: MAIN
Changes since 1.27: +28 -2 lines
Diff to previous 1.27 (colored) to selected 1.32 (colored)

Merge wrstuden-revivesa into HEAD.

Revision 1.15.6.4 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:53 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.15.6.3: +5 -0 lines
Diff to previous 1.15.6.3 (colored) to branchpoint 1.15 (colored) to selected 1.32 (colored)

Sync with HEAD.

Revision 1.21.4.6 / (download) - annotate - [select for diffs], Thu Sep 18 04:31:43 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.21.4.5: +7 -2 lines
Diff to previous 1.21.4.5 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored) to selected 1.32 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.21.4.5 / (download) - annotate - [select for diffs], Sat Jul 26 19:51:12 2008 UTC (15 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.21.4.4: +19 -2 lines
Diff to previous 1.21.4.4 (colored) to branchpoint 1.21 (colored) to selected 1.32 (colored)

sys__lwp_create() and sys__lwp_suspend(): Only test to see if a process is
an SA process ifdef KERN_SA.

sys__sched_setaffinity(): Don't allow changing (setting) the affinity
of an SA process (or a thread in an SA process). To really set the
affinity of a thread in an SA process, we need to set the affility
for all LWPs on which that user thread will run. This really means
setting the affinity on all present and future threads on a VP
and also having the user thread always run on an lwp on that VP. The
latter needs libpthread's intervention.

Revision 1.21.4.4 / (download) - annotate - [select for diffs], Mon Jul 21 19:13:45 2008 UTC (15 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.21.4.3: +6 -2 lines
Diff to previous 1.21.4.3 (colored) to branchpoint 1.21 (colored) to selected 1.32 (colored)

Add support for compiling SA as an option. Implied by COMPAT_40.

i386 kernels both with COMPAT_40 and with no compat options (and thus
no SA) compile.

No functional changes intended.

Revision 1.22.2.3 / (download) - annotate - [select for diffs], Fri Jul 18 16:37:49 2008 UTC (15 years, 8 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.22.2.2: +7 -2 lines
Diff to previous 1.22.2.2 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored) to selected 1.32 (colored)

Sync with head.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jul 14 01:19:37 2008 UTC (15 years, 8 months ago) by rmind
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base
Changes since 1.26: +7 -2 lines
Diff to previous 1.26 (colored) to selected 1.32 (colored)

- Disallow setting of affinity for zombie LWPs.
- Fix the possible NULL dereference when LWP exiting.
- Fix the inhertance of affinity.

Revision 1.15.6.3 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:14 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.15.6.2: +57 -32 lines
Diff to previous 1.15.6.2 (colored) to branchpoint 1.15 (colored) to selected 1.32 (colored)

Sync with HEAD.

Revision 1.22.2.2 / (download) - annotate - [select for diffs], Fri Jun 27 15:11:39 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.22.2.1: +15 -29 lines
Diff to previous 1.22.2.1 (colored) to branchpoint 1.22 (colored) to selected 1.32 (colored)

Sync with head.

Revision 1.21.4.3 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:51 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.21.4.2: +60 -35 lines
Diff to previous 1.21.4.2 (colored) to branchpoint 1.21 (colored) to selected 1.32 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Jun 22 00:06:36 2008 UTC (15 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: haad-dm
Changes since 1.25: +15 -29 lines
Diff to previous 1.25 (colored) to selected 1.32 (colored)

Adjust to separate kcpuset_t and cpuset_t.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Wed Jun 18 16:33:35 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.22: +73 -34 lines
Diff to previous 1.22 (colored) to selected 1.32 (colored)

Sync with head.

Revision 1.19.2.3 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:03 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.19.2.2: +73 -34 lines
Diff to previous 1.19.2.2 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored) to selected 1.32 (colored)

sync with head.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Jun 16 01:41:20 2008 UTC (15 years, 9 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pf42-base4
Changes since 1.24: +17 -17 lines
Diff to previous 1.24 (colored) to selected 1.32 (colored)

- Add general cpuset macros.
- Use kcpuset name for kernel-only functions.
- Use cpuid_t to specify CPU ID.
- Unify all cpuset users.

API is expected to be stable now.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jun 15 23:29:09 2008 UTC (15 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.23: +16 -11 lines
Diff to previous 1.23 (colored) to selected 1.32 (colored)

gencpuset: avoid returning of unitialized error.
sched_setaffinity: instead of E2BIG, return EINVAL in a case of invalid
CPU, which is more consistent.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Jun 15 20:32:57 2008 UTC (15 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.22: +68 -34 lines
Diff to previous 1.22 (colored) to selected 1.32 (colored)

Don't expose struct cpuset, share the l_affinity flag and only allocate it
if we need to. This is not a compatible change, but the syscalls are new
enough and they don't need to be versioned. Approved by rmind.

Revision 1.19.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:40 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.19.2.1: +3 -3 lines
Diff to previous 1.19.2.1 (colored) to branchpoint 1.19 (colored) to selected 1.32 (colored)

sync with head

Revision 1.15.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:12 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.15.6.1: +30 -24 lines
Diff to previous 1.15.6.1 (colored) to branchpoint 1.15 (colored) to selected 1.32 (colored)

Sync with HEAD.

Revision 1.22 / (download) - annotate - [select for diffs], Sun May 25 23:34:24 2008 UTC (15 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base3
Branch point for: simonb-wapbl
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored) to selected 1.32 (colored)

If converting a process/thread from SCHED_OTHER to a realtime thread,
ignore the existing priority. If no priority is specified, give threads
the minimum user RT priority.

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:10 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.19: +31 -25 lines
Diff to previous 1.19 (colored) to selected 1.32 (colored)

sync with head.

Revision 1.21.4.2 / (download) - annotate - [select for diffs], Wed May 14 00:27:11 2008 UTC (15 years, 10 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.21.4.1: +3 -2 lines
Diff to previous 1.21.4.1 (colored) to branchpoint 1.21 (colored) to selected 1.32 (colored)

I have no idea how this compiled before w/o sys/sa.h. But we need it, so
include it.

Revision 1.21.4.1 / (download) - annotate - [select for diffs], Mon May 12 07:15:10 2008 UTC (15 years, 10 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.21: +6 -2 lines
Diff to previous 1.21 (colored) to selected 1.32 (colored)

Reimpliment the preempt() handling from 4.0 SA. This time, however,
do it better. Since every call to preempt() set the "more" paremeter
to true except for one, leave preempt alone and add code to
explicitly handle what preempt() did w/ "more" set to false.

The one case in question is in sys_sched_yield(). Explicitly trigger
generating a BLOCKED upcall, which will also trigger an UNBLOCKED
upcall when we actually return to userland. This will sufficiently
rattle the libpthread scheduler as to let opther threads run.

This is a minor ABI change in that we now always generate the upcalls,
where as in 4.0 we only generated them iff mi_switch() switched us
to another thread. Since userland threads are what matter for an SA
process, I don't think that will hurt us.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Apr 24 18:39:24 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, yamt-nfs-mp-base, hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp, wrstuden-revivesa
Changes since 1.20: +21 -20 lines
Diff to previous 1.20 (colored) to selected 1.32 (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.20 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:30 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.19: +12 -7 lines
Diff to previous 1.19 (colored) to selected 1.32 (colored)

Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:

- Inspecting process state requires thread context, so signals can no longer
  be sent from a hardware interrupt handler. Signal activity must be
  deferred to a soft interrupt or kthread.

- As the proc state locking is simplified, it's now safe to take exit()
  and wait() out from under kernel_lock.

- The system spends less time at IPL_SCHED, and there is less lock activity.

Revision 1.15.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:04 2008 UTC (15 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.15: +106 -97 lines
Diff to previous 1.15 (colored) to selected 1.32 (colored)

Sync with HEAD.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:14 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.15: +106 -97 lines
Diff to previous 1.15 (colored) next main 1.16 (colored) to selected 1.32 (colored)

sync with head.

Revision 1.3.22.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:00 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.3.22.1: +463 -24 lines
Diff to previous 1.3.22.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored) to selected 1.32 (colored)

sync with HEAD

Revision 1.3.4.7 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:34 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.4.6: +86 -48 lines
Diff to previous 1.3.4.6 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored) to selected 1.32 (colored)

sync with head.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Mar 5 12:47:13 2008 UTC (16 years ago) by njoly
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: yamt-pf42
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored) to selected 1.32 (colored)

s/Minimal/Maximal/ in kern.sched.pri_max sysctl node description.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Feb 28 16:09:19 2008 UTC (16 years, 1 month ago) by elad
Branch: MAIN
Changes since 1.17: +85 -47 lines
Diff to previous 1.17 (colored) to selected 1.32 (colored)

Factor out the guts of get/setparam so it can be used from the compat code.

Make the FreeBSD and Linux compat code convert the parameters to their
native representation and call the native routines.

Remove KAUTH_PROCESS_SCHEDULER_GET/SET.

Update documentation and examples.

XXX: For now, only the Linux compat code does the priority conversion
XXX: right.

Linux priority conversion code from yamt@, thanks!

Okay yamt@.

Revision 1.3.4.6 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:56 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.4.5: +52 -78 lines
Diff to previous 1.3.4.5 (colored) to branchpoint 1.3 (colored) to selected 1.32 (colored)

sync with head.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Feb 22 23:10:12 2008 UTC (16 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: hpcarm-cleanup-base
Changes since 1.16: +11 -9 lines
Diff to previous 1.16 (colored) to selected 1.32 (colored)

- Add a one line comment indicating what this file does.
- Move the check for PK_SYSTEM to a more sane place.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Feb 22 22:32:49 2008 UTC (16 years, 1 month ago) by rmind
Branch: MAIN
Changes since 1.15: +20 -51 lines
Diff to previous 1.15 (colored) to selected 1.32 (colored)

sys__sched_getparam and sys__sched_getaffinity: Do not assume that LWP
with LID=1 exists, use LIST_FIRST(&p->p_lwps) instead.
Fixes PR/37987 by <yamt>.

While here, adjust license.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Feb 19 19:38:18 2008 UTC (16 years, 1 month ago) by drochner
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored) to selected 1.32 (colored)

fix sched_setparam() error reporting (broken by recent kauth changes)

Revision 1.14 / (download) - annotate - [select for diffs], Tue Feb 19 09:44:26 2008 UTC (16 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.13: +3 -1 lines
Diff to previous 1.13 (colored) to selected 1.32 (colored)

sys__sched_setparam: fix a lock leak.

Revision 1.3.28.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:47 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.3: +442 -14 lines
Diff to previous 1.3 (colored) next main 1.4 (colored) to selected 1.32 (colored)

Sync with HEAD.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Feb 18 02:00:08 2008 UTC (16 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: mjf-devfs-base
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) to selected 1.32 (colored)

sys__sched_setparam: use a correct lwp.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Feb 17 19:22:35 2008 UTC (16 years, 1 month ago) by elad
Branch: MAIN
Changes since 1.11: +16 -13 lines
Diff to previous 1.11 (colored) to selected 1.32 (colored)

PR/37986: YAMAMOTO Takashi: any user can hog the all cpu with
    _sched_setparam.

Pass proper context to kauth(9) for a decision to made based on the
scheduling policy and priority.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Feb 16 16:39:34 2008 UTC (16 years, 1 month ago) by elad
Branch: MAIN
Changes since 1.10: +10 -12 lines
Diff to previous 1.10 (colored) to selected 1.32 (colored)

Fold KAUTH_REQ_PROCESS_SCHEDULER_* to KAUTH_PROCESS_SCHEDULER_*. In other
words, don't pass an action and a request, and just use a single action to
indicate what is the operation in question.

This is the first step in fixing PR/37986, which calls for policy/priority
checking in the secmodel code. Right now we're lacking room for another
parameter required to make a decision, and this change makes room for such.

Revision 1.3.4.5 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:58 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.4.4: +57 -48 lines
Diff to previous 1.3.4.4 (colored) to branchpoint 1.3 (colored) to selected 1.32 (colored)

sync with head.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Feb 9 16:58:01 2008 UTC (16 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.9: +57 -48 lines
Diff to previous 1.9 (colored) to selected 1.32 (colored)

from rmind@,
- revert struct sched_param changes to restore ABI.
- instead, add 'policy' arguments to _sched_{get,set}param syscalls.
  (this is an API/ABI change.)
- correct kauth_authorize_process arguments.

while i'm here,
- don't bother to kmem_alloc for 4-byte structure.

Revision 1.3.4.4 / (download) - annotate - [select for diffs], Mon Feb 4 09:24:18 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.4.3: +157 -86 lines
Diff to previous 1.3.4.3 (colored) to branchpoint 1.3 (colored) to selected 1.32 (colored)

sync with head.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jan 31 01:21:17 2008 UTC (16 years, 2 months ago) by elad
Branch: MAIN
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored) to selected 1.32 (colored)

EACCES -> EPERM.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jan 30 17:54:56 2008 UTC (16 years, 2 months ago) by elad
Branch: MAIN
Changes since 1.7: +16 -4 lines
Diff to previous 1.7 (colored) to selected 1.32 (colored)

Use proper kauth(9) actions/requests for native scheduler stuff and the
recently introduced processor-sets.

Discussed with and okay rmind@, yamt@, and christos@.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jan 26 17:55:29 2008 UTC (16 years, 2 months ago) by rmind
Branch: MAIN
Changes since 1.6: +143 -80 lines
Diff to previous 1.6 (colored) to selected 1.32 (colored)

sched_setparam: fix the case when incorrect (according to the class)
in-kernel priority is used.  Reported by <drochner>.

Minor fixes for scheduling calls to conform the POSIX:
- If pid is equal to zero, use the calling process;
- In case of permission problem, return EPERM instead of EACESS;
- sched_setscheduler() should return previously used policy;
- pthread_* calls should return the error code or zero;

Should fix the namespace problems (and builds of some packages):
- Move cpuset_t defintion from pset.h to sched.h;
- Remove the #include of pset.h in pthread.h;

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jan 24 14:41:12 2008 UTC (16 years, 2 months ago) by rmind
Branch: MAIN
Changes since 1.5: +3 -7 lines
Diff to previous 1.5 (colored) to selected 1.32 (colored)

Fix the return values to conform the standard and/or be compatible with
other systems.  Reported by <drochner>.

Revision 1.3.4.3 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:25 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.4.2: +362 -15 lines
Diff to previous 1.3.4.2 (colored) to branchpoint 1.3 (colored) to selected 1.32 (colored)

sync with head

Revision 1.3.34.2 / (download) - annotate - [select for diffs], Sat Jan 19 12:15:26 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.3.34.1: +359 -12 lines
Diff to previous 1.3.34.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored) to selected 1.32 (colored)

Sync with HEAD

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jan 15 03:37:11 2008 UTC (16 years, 2 months ago) by rmind
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.4: +361 -14 lines
Diff to previous 1.4 (colored) to selected 1.32 (colored)

Implementation of processor-sets, affinity and POSIX real-time extensions.
Add schedctl(8) - a program to control scheduling of processes and threads.

Notes:
- This is supported only by SCHED_M2;
- Migration of LWP mechanism will be revisited;

Proposed on: <tech-kern>. Reviewed by: <ad>.

Revision 1.3.22.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:23 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) to selected 1.32 (colored)

sync with HEAD

Revision 1.3.34.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:56:15 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) to selected 1.32 (colored)

Sync with HEAD

Revision 1.3.30.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:15 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) next main 1.4 (colored) to selected 1.32 (colored)

Sync with head.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Dec 20 23:03:11 2007 UTC (16 years, 3 months ago) by dsl
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) to selected 1.32 (colored)

Convert all the system call entry points from:
    int foo(struct lwp *l, void *v, register_t *retval)
to:
    int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.

Revision 1.3.4.2 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:17 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3.4.1: +50 -0 lines
Diff to previous 1.3.4.1 (colored) to branchpoint 1.3 (colored) to selected 1.32 (colored)

sync with head.

Revision 1.3.4.1, Fri Feb 9 21:55:31 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.3: +0 -50 lines
FILE REMOVED

file sys_sched.c was added on branch yamt-lazymbuf on 2007-02-26 09:11:17 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:31 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, yamt-idlelwp, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, post-newlock2-merge, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-audiomp-base, ad-audiomp
Branch point for: yamt-lazymbuf, vmlocking2, mjf-devfs, matt-armv6, bouyer-xeni386
Changes since 1.2: +2 -3 lines
Diff to previous 1.2 (colored) to selected 1.32 (colored)

Merge newlock2 to head.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:38 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.2.2.1: +50 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored) to selected 1.32 (colored)

Sync with head.

Revision 1.2.2.1, Tue Jan 16 20:12:40 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.2: +0 -51 lines
FILE REMOVED

file sys_sched.c was added on branch newlock2 on 2007-02-01 08:48:38 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jan 16 20:12:40 2007 UTC (17 years, 2 months ago) by dogcow
Branch: MAIN
CVS Tags: newlock2-nbase, newlock2-base
Branch point for: newlock2
Changes since 1.1: +3 -2 lines
Diff to previous 1.1 (colored) to selected 1.32 (colored)

#include <sys/sa.h> to get sys_upcall_t def.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Jan 16 05:28:45 2007 UTC (17 years, 2 months ago) by ad
Branch: MAIN
Diff to selected 1.32 (colored)

Add sched_yield().

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>