Module: xenomai-3 Branch: stable-3.0.x Commit: 230bfaaa5efc5fe33b39c2be624ba3fa31a39d30 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=230bfaaa5efc5fe33b39c2be624ba3fa31a39d30
Author: Philippe Gerum <r...@xenomai.org> Date: Sat Jul 8 20:16:22 2017 +0200 cobalt/sched: quota: reject configuration of non-rt CPU [steely] --- kernel/cobalt/posix/sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cobalt/posix/sched.c b/kernel/cobalt/posix/sched.c index b73d531..4ae8738 100644 --- a/kernel/cobalt/posix/sched.c +++ b/kernel/cobalt/posix/sched.c @@ -622,7 +622,7 @@ int __cobalt_sched_setconfig_np(int cpu, int policy, trace_cobalt_sched_setconfig(cpu, policy, len); - if (cpu < 0 || cpu >= NR_CPUS || !cpu_online(cpu)) + if (cpu < 0 || cpu >= NR_CPUS || !xnsched_supported_cpu(cpu)) return -EINVAL; if (len == 0) _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org https://xenomai.org/mailman/listinfo/xenomai-git