|
@@ -5097,17 +5097,6 @@ SYSCALL_DEFINE1(sched_get_priority_min, int, policy)
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * sys_sched_rr_get_interval - return the default timeslice of a process.
|
|
|
- * @pid: pid of the process.
|
|
|
- * @interval: userspace pointer to the timeslice value.
|
|
|
- *
|
|
|
- * this syscall writes the default timeslice value of a given process
|
|
|
- * into the user-space timespec buffer. A value of '0' means infinity.
|
|
|
- *
|
|
|
- * Return: On success, 0 and the timeslice is in @interval. Otherwise,
|
|
|
- * an error code.
|
|
|
- */
|
|
|
static int sched_rr_get_interval(pid_t pid, struct timespec64 *t)
|
|
|
{
|
|
|
struct task_struct *p;
|
|
@@ -5144,6 +5133,17 @@ out_unlock:
|
|
|
return retval;
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * sys_sched_rr_get_interval - return the default timeslice of a process.
|
|
|
+ * @pid: pid of the process.
|
|
|
+ * @interval: userspace pointer to the timeslice value.
|
|
|
+ *
|
|
|
+ * this syscall writes the default timeslice value of a given process
|
|
|
+ * into the user-space timespec buffer. A value of '0' means infinity.
|
|
|
+ *
|
|
|
+ * Return: On success, 0 and the timeslice is in @interval. Otherwise,
|
|
|
+ * an error code.
|
|
|
+ */
|
|
|
SYSCALL_DEFINE2(sched_rr_get_interval, pid_t, pid,
|
|
|
struct timespec __user *, interval)
|
|
|
{
|