CVS log for src/sys/kern/sys_sched.c
Up to [cvs.NetBSD.org] / src / sys / kern
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.50: download - view: text, markup, annotated - select for diffs
Sun Apr 9 09:18:09 2023 UTC (20 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -3
lines
kern: KASSERT(A && B) -> KASSERT(A); KASSERT(B)
Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat May 23 23:42:43 2020 UTC (4 years, 6 months ago) by ad
Branches: 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-RELEASE,
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
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +8 -8
lines
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 - view: text, markup, annotated - select for diffs
Wed Apr 29 01:53:48 2020 UTC (4 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +8 -2
lines
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 - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:52 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +2 -3
lines
Merge changes from current as of 20200406
Revision 1.46.22.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:21:03 2020 UTC (4 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +2 -3
lines
Sync with head.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Mon Jan 27 22:05:10 2020 UTC (4 years, 10 months ago) by ad
Branches: 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
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -3
lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 3 11:38:45 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.42.2.1: preferred, colored; branchpoint 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.2.1: +63 -1
lines
update from HEAD
Revision 1.43.6.2: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:56:03 2016 UTC (8 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.43.6.1: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.6.1: +8 -8
lines
Sync with HEAD
Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 6 00:19:09 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +3 -3
lines
Sync with HEAD
Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Jul 30 15:38:17 2016 UTC (8 years, 4 months ago) by christos
Branches: 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-4-RELEASE,
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-3-RELEASE,
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
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3
lines
Fix reversed test.
Revision 1.43.6.1: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:20 2016 UTC (8 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +65 -3
lines
Sync with HEAD
Revision 1.45: download - view: text, markup, annotated - select for diffs
Thu Jul 7 06:55:43 2016 UTC (8 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20160726,
nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +4 -4
lines
KNF. Remove extra spaces. No functional change.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Jul 3 14:24:59 2016 UTC (8 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +64 -2
lines
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 - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:29 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -7
lines
Rebase to HEAD as of a few days ago.
Revision 1.38.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:03 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.38.2.2: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.2.2: +2 -7
lines
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 - view: text, markup, annotated - select for diffs
Sun May 18 17:46:07 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +2 -7
lines
sync with head
Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:30:11 2014 UTC (10 years, 9 months ago) by pooka
Branches: 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
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -7
lines
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 - view: text, markup, annotated - select for diffs
Wed May 23 10:08:12 2012 UTC (12 years, 6 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.38.2.1: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.2.1: +3 -3
lines
sync with head.
Revision 1.39.2.1: download - view: text, markup, annotated - select for diffs
Wed May 9 03:22:54 2012 UTC (12 years, 7 months ago) by riz
Branches: 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
Diff to: previous 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Sun Apr 29 23:05:05 2012 UTC (12 years, 7 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.38.6.2: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.6.2: +24 -7
lines
sync to latest -current.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Apr 20 22:23:25 2012 UTC (12 years, 7 months ago) by rmind
Branches: 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
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -3
lines
- 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 - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:29 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +25 -25
lines
sync with head
Revision 1.41: download - view: text, markup, annotated - select for diffs
Fri Apr 13 15:27:13 2012 UTC (12 years, 8 months ago) by yamt
Branches: MAIN
CVS tags: yamt-pagecache-base4
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +23 -6
lines
- do_sched_getparam: release locks earlier.
- add comments
Revision 1.38.6.2: download - view: text, markup, annotated - select for diffs
Fri Feb 24 09:11:48 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.38.6.1: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.6.1: +2 -20
lines
sync to -current.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Feb 19 21:06:56 2012 UTC (12 years, 9 months ago) by rmind
Branches: MAIN
CVS tags: jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -20
lines
Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3!
Approved by core@.
Revision 1.38.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:33 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -3
lines
merge to -current.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Jan 29 22:55:40 2012 UTC (12 years, 10 months ago) by rmind
Branches: MAIN
CVS tags: netbsd-6-base,
jmcneill-usbmp-base2
Branch point for: netbsd-6
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -3
lines
- 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 - view: text, markup, annotated - select for diffs
Sun Aug 7 21:38:32 2011 UTC (13 years, 4 months ago) by rmind
Branches: 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
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3
lines
- Add an argument to kcpuset_create() for zeroing.
- Add kcpuset_atomic_set(), kcpuset_atomic_clear() and kcpuset_merge().
Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Aug 7 21:13:05 2011 UTC (13 years, 4 months ago) by rmind
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +16 -16
lines
Remove LW_AFFINITY flag and fix some bugs affinity mask handling.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Aug 7 13:33:01 2011 UTC (13 years, 4 months ago) by rmind
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +42 -28
lines
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 - view: text, markup, annotated - select for diffs
Tue Aug 17 06:47:31 2010 UTC (14 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +4 -4
lines
Sync with HEAD.
Revision 1.21.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:42 2010 UTC (14 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.21.2.2: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.2: +4 -4
lines
sync with head.
Revision 1.34.4.1: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:55 2010 UTC (14 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +4 -4
lines
sync with head
Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Jul 1 02:38:31 2010 UTC (14 years, 5 months ago) by rmind
Branches: 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
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:19 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.21.2.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.1: +66 -3
lines
sync with head
Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Oct 3 22:32:56 2009 UTC (15 years, 2 months ago) by elad
Branches: 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
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +66 -3
lines
- 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 - view: text, markup, annotated - select for diffs
Wed May 13 17:21:57 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +3 -3
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:48 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +154 -79
lines
sync with head.
Revision 1.30.2.3: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:37:00 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.30.2.2: preferred, colored; branchpoint 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30.2.2: +3 -3
lines
Sync with HEAD.
Revision 1.30.4.3: download - view: text, markup, annotated - select for diffs
Sun Mar 8 03:15:36 2009 UTC (15 years, 9 months ago) by snj
Branches: 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
Diff to: previous 1.30.4.2: preferred, colored; branchpoint 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30.4.2: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Tue Mar 3 21:55:06 2009 UTC (15 years, 9 months ago) by rmind
Branches: 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
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Tue Mar 3 18:32:56 2009 UTC (15 years, 9 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.30.2.1: preferred, colored; branchpoint 1.30: preferred, colored
Changes since revision 1.30.2.1: +30 -16
lines
Sync with HEAD.
Revision 1.30.4.2: download - view: text, markup, annotated - select for diffs
Thu Jan 22 20:42:46 2009 UTC (15 years, 10 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RC2,
netbsd-5-0-RC1
Diff to: previous 1.30.4.1: preferred, colored; branchpoint 1.30: preferred, colored
Changes since revision 1.30.4.1: +30 -16
lines
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 - view: text, markup, annotated - select for diffs
Tue Jan 20 01:57:35 2009 UTC (15 years, 10 months ago) by rmind
Branches: MAIN
CVS tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +30 -16
lines
- 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 - view: text, markup, annotated - select for diffs
Mon Jan 19 13:19:39 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +45 -28
lines
Sync with HEAD.
Revision 1.15.6.5: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:20 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.15.6.4: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.6.4: +87 -56
lines
Sync with HEAD.
Revision 1.26.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:15:09 2008 UTC (16 years ago) by haad
Branches: haad-dm
Diff to: previous 1.26.2.1: preferred, colored; branchpoint 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26.2.1: +45 -28
lines
Update haad-dm branch to haad-dm-base2.
Revision 1.30.4.1: download - view: text, markup, annotated - select for diffs
Thu Nov 13 00:04:07 2008 UTC (16 years, 1 month ago) by snj
Branches: netbsd-5
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +45 -28
lines
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 - view: text, markup, annotated - select for diffs
Fri Oct 31 00:36:22 2008 UTC (16 years, 1 month ago) by rmind
Branches: MAIN
CVS tags: mjf-devfs2-base,
haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +45 -28
lines
- 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 - view: text, markup, annotated - select for diffs
Sun Oct 19 22:17:28 2008 UTC (16 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +60 -41
lines
Sync with HEAD.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Oct 18 19:24:04 2008 UTC (16 years, 1 month ago) by rmind
Branches: MAIN
CVS tags: netbsd-5-base,
matt-mips64-base2,
haad-dm-base1
Branch point for: nick-hppapmap,
netbsd-5
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3
lines
Obviously intention was to check for SCHED_OTHER, not SCHED_FIFO.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Oct 18 03:40:18 2008 UTC (16 years, 1 month ago) by rmind
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +29 -41
lines
Disallow user priority adjustments for SCHED_OTHER policy, simplify
convert_pri(). Sync schedctl(8) with the change. Closes PR/38009.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Oct 15 06:51:20 2008 UTC (16 years, 1 month ago) by wrstuden
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +28 -2
lines
Merge wrstuden-revivesa into HEAD.
Revision 1.15.6.4: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:53 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.15.6.3: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.6.3: +5 -0
lines
Sync with HEAD.
Revision 1.21.4.6: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:31:43 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.21.4.5: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.4.5: +7 -2
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.21.4.5: download - view: text, markup, annotated - select for diffs
Sat Jul 26 19:51:12 2008 UTC (16 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.21.4.4: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.4.4: +19 -2
lines
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 - view: text, markup, annotated - select for diffs
Mon Jul 21 19:13:45 2008 UTC (16 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.21.4.3: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.4.3: +6 -2
lines
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 - view: text, markup, annotated - select for diffs
Fri Jul 18 16:37:49 2008 UTC (16 years, 4 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.22.2.2: preferred, colored; branchpoint 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22.2.2: +7 -2
lines
Sync with head.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Jul 14 01:19:37 2008 UTC (16 years, 5 months ago) by rmind
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
simonb-wapbl-nbase,
simonb-wapbl-base
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +7 -2
lines
- 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 - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:14 2008 UTC (16 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.15.6.2: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.6.2: +57 -32
lines
Sync with HEAD.
Revision 1.22.2.2: download - view: text, markup, annotated - select for diffs
Fri Jun 27 15:11:39 2008 UTC (16 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.22.2.1: preferred, colored; branchpoint 1.22: preferred, colored
Changes since revision 1.22.2.1: +15 -29
lines
Sync with head.
Revision 1.21.4.3: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:51 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.21.4.2: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.4.2: +60 -35
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Jun 22 00:06:36 2008 UTC (16 years, 5 months ago) by christos
Branches: MAIN
CVS tags: wrstuden-revivesa-base-1,
wrstuden-revivesa-base
Branch point for: haad-dm
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +15 -29
lines
Adjust to separate kcpuset_t and cpuset_t.
Revision 1.22.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 18 16:33:35 2008 UTC (16 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +73 -34
lines
Sync with head.
Revision 1.19.2.3: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:15:03 2008 UTC (16 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.19.2.2: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.2.2: +73 -34
lines
sync with head.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Jun 16 01:41:20 2008 UTC (16 years, 5 months ago) by rmind
Branches: MAIN
CVS tags: yamt-pf42-base4
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +17 -17
lines
- 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 - view: text, markup, annotated - select for diffs
Sun Jun 15 23:29:09 2008 UTC (16 years, 5 months ago) by rmind
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +16 -11
lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 15 20:32:57 2008 UTC (16 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +68 -34
lines
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 - view: text, markup, annotated - select for diffs
Wed Jun 4 02:05:40 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.19.2.1: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.2.1: +3 -3
lines
sync with head
Revision 1.15.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:12 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.15.6.1: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.6.1: +30 -24
lines
Sync with HEAD.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun May 25 23:34:24 2008 UTC (16 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base3
Branch point for: simonb-wapbl
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Sun May 18 12:35:10 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +31 -25
lines
sync with head.
Revision 1.21.4.2: download - view: text, markup, annotated - select for diffs
Wed May 14 00:27:11 2008 UTC (16 years, 7 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.21.4.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.4.1: +3 -2
lines
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 - view: text, markup, annotated - select for diffs
Mon May 12 07:15:10 2008 UTC (16 years, 7 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +6 -2
lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 24 18:39:24 2008 UTC (16 years, 7 months ago) by ad
Branches: 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
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +21 -20
lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 24 15:35:30 2008 UTC (16 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +12 -7
lines
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 - view: text, markup, annotated - select for diffs
Thu Apr 3 12:43:04 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +106 -97
lines
Sync with HEAD.
Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:16:14 2008 UTC (16 years, 8 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +106 -97
lines
sync with head.
Revision 1.3.22.2: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:05:00 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.3.22.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.22.1: +463 -24
lines
sync with HEAD
Revision 1.3.4.7: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:15:34 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.4.6: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.4.6: +86 -48
lines
sync with head.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Mar 5 12:47:13 2008 UTC (16 years, 9 months ago) by njoly
Branches: 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
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3
lines
s/Minimal/Maximal/ in kern.sched.pri_max sysctl node description.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Feb 28 16:09:19 2008 UTC (16 years, 9 months ago) by elad
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +85 -47
lines
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 - view: text, markup, annotated - select for diffs
Wed Feb 27 08:36:56 2008 UTC (16 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.4.5: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.5: +52 -78
lines
sync with head.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Feb 22 23:10:12 2008 UTC (16 years, 9 months ago) by ad
Branches: MAIN
CVS tags: hpcarm-cleanup-base
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +11 -9
lines
- 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 - view: text, markup, annotated - select for diffs
Fri Feb 22 22:32:49 2008 UTC (16 years, 9 months ago) by rmind
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +20 -51
lines
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 - view: text, markup, annotated - select for diffs
Tue Feb 19 19:38:18 2008 UTC (16 years, 9 months ago) by drochner
Branches: MAIN
CVS tags: nick-net80211-sync-base,
nick-net80211-sync
Branch point for: mjf-devfs2,
keiichi-mipv6
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3
lines
fix sched_setparam() error reporting (broken by recent kauth changes)
Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Feb 19 09:44:26 2008 UTC (16 years, 9 months ago) by yamt
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -1
lines
sys__sched_setparam: fix a lock leak.
Revision 1.3.28.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:06:47 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +442 -14
lines
Sync with HEAD.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Feb 18 02:00:08 2008 UTC (16 years, 9 months ago) by yamt
Branches: MAIN
CVS tags: mjf-devfs-base
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3
lines
sys__sched_setparam: use a correct lwp.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Feb 17 19:22:35 2008 UTC (16 years, 9 months ago) by elad
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +16 -13
lines
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 - view: text, markup, annotated - select for diffs
Sat Feb 16 16:39:34 2008 UTC (16 years, 9 months ago) by elad
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +10 -12
lines
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 - view: text, markup, annotated - select for diffs
Mon Feb 11 14:59:58 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.4.4: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.4: +57 -48
lines
sync with head.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Feb 9 16:58:01 2008 UTC (16 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +57 -48
lines
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 - view: text, markup, annotated - select for diffs
Mon Feb 4 09:24:18 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.4.3: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.3: +157 -86
lines
sync with head.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Jan 31 01:21:17 2008 UTC (16 years, 10 months ago) by elad
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -4
lines
EACCES -> EPERM.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Jan 30 17:54:56 2008 UTC (16 years, 10 months ago) by elad
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +16 -4
lines
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 - view: text, markup, annotated - select for diffs
Sat Jan 26 17:55:29 2008 UTC (16 years, 10 months ago) by rmind
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +143 -80
lines
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 - view: text, markup, annotated - select for diffs
Thu Jan 24 14:41:12 2008 UTC (16 years, 10 months ago) by rmind
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -7
lines
Fix the return values to conform the standard and/or be compatible with
other systems. Reported by <drochner>.
Revision 1.3.4.3: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:46:25 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.4.2: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.2: +362 -15
lines
sync with head
Revision 1.3.34.2: download - view: text, markup, annotated - select for diffs
Sat Jan 19 12:15:26 2008 UTC (16 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.3.34.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.34.1: +359 -12
lines
Sync with HEAD
Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Jan 15 03:37:11 2008 UTC (16 years, 10 months ago) by rmind
Branches: MAIN
CVS tags: bouyer-xeni386-nbase,
bouyer-xeni386-base
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +361 -14
lines
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 - view: text, markup, annotated - select for diffs
Wed Jan 9 01:56:23 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -3
lines
sync with HEAD
Revision 1.3.34.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:56:15 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -3
lines
Sync with HEAD
Revision 1.3.30.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:57:15 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +3 -3
lines
Sync with head.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Dec 20 23:03:11 2007 UTC (16 years, 11 months ago) by dsl
Branches: MAIN
CVS tags: vmlocking2-base3,
matt-armv6-base
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Mon Feb 26 09:11:17 2007 UTC (17 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.3.4.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.4.1: +50 -0
lines
sync with head.
Revision 1.3.4.1
Fri Feb 9 21:55:31 2007 UTC (17 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
FILE REMOVED
Changes since revision 1.3: +0 -50
lines
file sys_sched.c was added on branch yamt-lazymbuf on 2007-02-26 09:11:17 +0000
Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Feb 9 21:55:31 2007 UTC (17 years, 10 months ago) by ad
Branches: 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
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -3
lines
Merge newlock2 to head.
Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Thu Feb 1 08:48:38 2007 UTC (17 years, 10 months ago) by ad
Branches: newlock2
Diff to: previous 1.2.2.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.1: +50 -0
lines
Sync with head.
Revision 1.2.2.1
Tue Jan 16 20:12:40 2007 UTC (17 years, 10 months ago) by ad
Branches: newlock2
FILE REMOVED
Changes since revision 1.2: +0 -51
lines
file sys_sched.c was added on branch newlock2 on 2007-02-01 08:48:38 +0000
Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Jan 16 20:12:40 2007 UTC (17 years, 10 months ago) by dogcow
Branches: MAIN
CVS tags: newlock2-nbase,
newlock2-base
Branch point for: newlock2
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -2
lines
#include <sys/sa.h> to get sys_upcall_t def.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Jan 16 05:28:45 2007 UTC (17 years, 10 months ago) by ad
Branches: MAIN
Add sched_yield().
CVSweb <webmaster@jp.NetBSD.org>