Module Name: src
Committed By: njoly
Date: Thu Jan 23 19:18:08 UTC 2014
Modified Files:
src/sys/compat/linux/common: linux_sched.c
Log Message:
Fix inverted pid/lid arguments in do_sched_{get,set}param calls.
To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/compat/linux/common/linux_sched.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/compat/linux/common/linux_sched.c
diff -u src/sys/compat/linux/common/linux_sched.c:1.65 src/sys/compat/linux/common/linux_sched.c:1.66
--- src/sys/compat/linux/common/linux_sched.c:1.65 Thu Aug 18 02:26:38 2011
+++ src/sys/compat/linux/common/linux_sched.c Thu Jan 23 19:18:08 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_sched.c,v 1.65 2011/08/18 02:26:38 christos Exp $ */
+/* $NetBSD: linux_sched.c,v 1.66 2014/01/23 19:18:08 njoly Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_sched.c,v 1.65 2011/08/18 02:26:38 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_sched.c,v 1.66 2014/01/23 19:18:08 njoly Exp $");
#include <sys/param.h>
#include <sys/mount.h>
@@ -418,7 +418,7 @@ linux_sys_sched_setparam(struct lwp *l,
goto out;
/* We need the current policy in Linux terms. */
- error = do_sched_getparam(0, SCARG(uap, pid), &policy, NULL);
+ error = do_sched_getparam(SCARG(uap, pid), 0, &policy, NULL);
if (error)
goto out;
error = sched_native2linux(policy, NULL, &policy, NULL);
@@ -429,7 +429,7 @@ linux_sys_sched_setparam(struct lwp *l,
if (error)
goto out;
- error = do_sched_setparam(0, SCARG(uap, pid), policy, &sp);
+ error = do_sched_setparam(SCARG(uap, pid), 0, policy, &sp);
if (error)
goto out;
@@ -453,7 +453,7 @@ linux_sys_sched_getparam(struct lwp *l,
goto out;
}
- error = do_sched_getparam(0, SCARG(uap, pid), &policy, &sp);
+ error = do_sched_getparam(SCARG(uap, pid), 0, &policy, &sp);
if (error)
goto out;
DPRINTF(("%s: native: policy %d, priority %d\n",
@@ -502,7 +502,7 @@ linux_sys_sched_setscheduler(struct lwp
DPRINTF(("%s: native: policy %d, priority %d\n",
__func__, policy, sp.sched_priority));
- error = do_sched_setparam(0, SCARG(uap, pid), policy, &sp);
+ error = do_sched_setparam(SCARG(uap, pid), 0, policy, &sp);
if (error)
goto out;
@@ -520,7 +520,7 @@ linux_sys_sched_getscheduler(struct lwp
*retval = -1;
- error = do_sched_getparam(0, SCARG(uap, pid), &policy, NULL);
+ error = do_sched_getparam(SCARG(uap, pid), 0, &policy, NULL);
if (error)
goto out;