Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
if (!(handler->ns_clone_flags & CLONE_NEWPID))
return syserror_set(-EINVAL, "Core scheduling currently requires a separate pid namespace");
- ret = core_scheduling_cookie_create_thread(handler->pid);
+ ret = core_scheduling_cookie_create_threadgroup(handler->pid);
if (ret < 0) {
if (ret == -EINVAL)
return sysinfo("The kernel does not support core scheduling");
return cookie;
}
-static inline int core_scheduling_cookie_create_thread(pid_t pid)
+static inline int core_scheduling_cookie_create_threadgroup(pid_t pid)
{
int ret;