systemd/src
Holger Hans Peter Freyther bb11271068 sched: Only setting CPUSchedulingPriority=rr doesn't work
A service that only sets the scheduling policy to round-robin
fails to be started. This is because the cpu_sched_priority is
initialized to 0 and is not adjusted when the policy is changed.

Clamp the cpu_sched_priority when the scheduler policy is set. Use
the current policy to validate the new priority.

Change the manual page to state that the given range only applies
to the real-time scheduling policies.

Add a testcase that verifies this change:

$ make test-sched-prio; ./test-sched-prio
[test/sched_idle_bad.service:6] CPU scheduling priority is out of range, ignoring: 1
[test/sched_rr_bad.service:7] CPU scheduling priority is out of range, ignoring: 0
[test/sched_rr_bad.service:8] CPU scheduling priority is out of range, ignoring: 100
2012-11-15 16:16:45 +01:00
..
ac-power build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
analyze systemd-analyze: use argparse instead of getopt 2012-11-13 02:23:02 +01:00
ask-password build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
binfmt continue work with error messages, log_oom() 2012-08-06 16:37:01 +02:00
cgls util: split-out path-util.[ch] 2012-05-08 02:33:10 +02:00
cgroups-agent build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
cgtop util: unify line caching and column caching 2012-10-19 00:07:55 +02:00
core sched: Only setting CPUSchedulingPriority=rr doesn't work 2012-11-15 16:16:45 +01:00
cryptsetup cryptsetup: fix inverted comparison in pass_volume_key 2012-11-06 10:18:10 -05:00
delta delta.c: fix option '-t' 2012-11-14 00:18:02 +01:00
detect-virt systemd-detect-virt: fix "option '--quiet' requires an argument" 2012-06-04 12:39:22 +02:00
fsck log.h: new log_oom() -> int -ENOMEM, use it 2012-07-26 11:48:26 +02:00
fstab-generator fstab-generator: more specific error messages 2012-11-09 12:00:46 +01:00
getty-generator log.h: new log_oom() -> int -ENOMEM, use it 2012-07-26 11:48:26 +02:00
gudev update .gitignore 2012-04-13 21:49:25 +02:00
hostname enable localization for common *ctl commands 2012-11-12 14:16:07 -05:00
initctl build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
journal journalctl: require argument for --priority 2012-11-15 16:09:02 +01:00
libsystemd-daemon libsystemd-daemon: fix style 2012-10-30 10:30:44 +01:00
libsystemd-id128 update .gitignore 2012-04-13 21:58:01 +02:00
libudev libudev: avoid leak during realloc failure 2012-11-13 01:59:33 +01:00
locale enable localization for common *ctl commands 2012-11-12 14:16:07 -05:00
login util: nicer tree drawings 2012-11-12 22:27:48 +01:00
machine-id-setup log: correct usage of logging API at a few places 2012-07-13 15:45:45 +02:00
modules-load modules-load: initalize files to null 2012-09-21 16:11:07 +02:00
notify build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
nspawn nspawn: use automatic cleanup and provide debug info 2012-10-02 14:56:26 +02:00
python-systemd python: add journal backend for the logging framework 2012-11-13 11:13:52 +01:00
quotacheck cryptsetup: allow configuration of LUKS disks via the kernel cmdline 2012-06-22 10:11:06 +02:00
random-seed random-seed: fix error message typo 2012-10-19 17:31:33 +02:00
rc-local-generator log.h: new log_oom() -> int -ENOMEM, use it 2012-07-26 11:48:26 +02:00
readahead readahead: fix fd validity check 2012-10-22 22:08:06 +02:00
remount-fs service: add options RestartPreventExitStatus and SuccessExitStatus 2012-08-14 14:46:03 +02:00
reply-password build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
shared systemctl: add help for --type/-t 2012-11-15 11:54:57 +01:00
shutdownd shutdown: allow to specify broadcast message when cancelling shutdown 2012-08-06 16:25:55 +02:00
sleep logind: support for hybrid sleep (i.e. suspend+hibernate at the same time) 2012-10-28 00:50:35 +02:00
stdio-bridge build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
sysctl sysctl: parse all keys in a config file 2012-10-26 01:12:22 +02:00
system-update-generator log.h: new log_oom() -> int -ENOMEM, use it 2012-07-26 11:48:26 +02:00
systemctl systemctl: add help for --type/-t 2012-11-15 11:54:57 +01:00
systemd journal: provide an API that allows client to figure out whether they need to recheck the journal manually for changes in regular intervals 2012-10-26 20:07:33 +02:00
test sched: Only setting CPUSchedulingPriority=rr doesn't work 2012-11-15 16:16:45 +01:00
timedate timedatectl: break line to not exceed 80 columns 2012-11-14 22:49:29 +01:00
timestamp build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
tmpfiles tmpfiles: allow Age to be set to 0 2012-10-23 21:53:20 +02:00
tty-ask-password-agent log.h: new log_oom() -> int -ENOMEM, use it 2012-07-26 11:48:26 +02:00
udev udev: properly handle symlink removal by 'change' event 2012-11-13 02:14:17 +01:00
update-utmp utmp: read the right timestamp 2012-09-17 17:48:19 +02:00
vconsole drop Arch Linux support for reading /etc/rc.conf 2012-11-03 19:59:42 -04:00
.gitignore move libsystemd-id128, libsystemd-daemon to subdir 2012-04-12 15:26:39 +02:00
Makefile relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00